Function at 0x486b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3adb
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4e3ec8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x434]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00474100
add esp, 4
mov byte [ebp - 4], 1
call sub.mfc100.dll_Ordinal_1929
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x438]
push edx
call fcn.00405cd0
push str.PrinterAlignment.csv
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 2
call fcn.004019e0
add esp, 0xc
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 1
lea ecx, [ebp - 0x4f8]
call fcn.00464080
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push 0x40
push 3
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00406340
push edi
cmp eax, edi
jne 0x486c42
mov ecx, dword [ebp - 0x4f8]
mov ecx, dword [ecx + 4]
push 2
lea ecx, [ebp + ecx - 0x4f8]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x486c59
mov edx, dword [ebp - 0x4f8]
mov ecx, dword [edx + 4]
push edi
lea ecx, [ebp + ecx - 0x4f8]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x42c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x430]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov bl, 0xd
push 0x4b1720
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x408], eax
cmp eax, edi
je 0x487455
mov esi, dword [ebp - 0x408]
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x4870e8
push esi
lea eax, [ebp - 0x3fc]
push 0x3e8
push eax
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
lea ecx, [ebp - 0x3fc]
push ecx
lea ecx, [ebp - 0x40c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
lea ecx, [ebp - 0x434]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
js 0x486ce7
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x10
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0x11
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4c77ac
lea ecx, [ebp - 0x42c]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
test eax, eax
js 0x486e70
push 4
push str.Printer_Document_type
push str.Click_on_YES_for_TD_printer_document_type_else_click_on_NO_for_DD_printer_document_type.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x486ce7
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0x13
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x14
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 0x17
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x18
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x4aed3c
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
mov esi, eax
push esi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 0x19
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov edi, 1
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test edi, edi
je 0x487455
lea eax, [ebp - 0x40c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftInternet_ExplorerPageSetup
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x487455
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x404]
fld dword [ebp - 0x404]
mov edi, dword [sym.imp.mfc100.dll_Ordinal_4283]
push ecx
fstp qword [esp]
lea ecx, [ebp - 0x418]
push 0x4bdd88
push ecx
call edi
add esp, 0x10
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edx, dword [ebp - 0x40c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push 1
push 0
push str.margin_left
push edx
call esi
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x404]
fld dword [ebp - 0x404]
push ecx
fstp qword [esp]
lea eax, [ebp - 0x41c]
push 0x4bdd88
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov ecx, dword [ebp - 0x40c]
push eax
push 1
push 0
push str.margin_right
push ecx
call esi
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x404]
fld dword [ebp - 0x404]
push ecx
fstp qword [esp]
lea edx, [ebp - 0x414]
push 0x4bdd88
push edx
call edi
add esp, 0x10
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov eax, dword [ebp - 0x40c]
push 1
push 0
push str.margin_bottom
push eax
call esi
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
push ecx
fstp dword [ebp - 0x404]
fld dword [ebp - 0x404]
lea ecx, [ebp - 0x410]
fstp qword [esp]
push 0x4bdd88
push ecx
call edi
add esp, 0x10
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edx, dword [ebp - 0x40c]
push eax
push 1
push 0
push str.margin_top
push edx
call esi
push 0x4ae26b
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov bl, 0x1b
lea ecx, [ebp - 0x408]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov eax, dword [ebp - 0x40c]
push 1
push 0
push str.font
push eax
call esi
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov ecx, dword [ebp - 0x40c]
push eax
push 1
push 0
push str.footer
push ecx
call esi
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov edx, dword [ebp - 0x40c]
push eax
push 1
push 0
push str.header
push edx
call esi
push ecx
lea eax, [ebp - 0x430]
mov ecx, esp
mov dword [ebp - 0x404], esp
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
push ecx
lea edx, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x424], esp
push edx
mov byte [ebp - 4], 0x1c
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov byte [ebp - 4], bl
call fcn.004772f0
add esp, 8
mov bl, al
lea ecx, [ebp - 0x408]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x430]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x42c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 4
call fcn.00464150
mov eax, dword [sym.imp.MSVCP100.dll_const_std::ios_base::vftable]
lea ecx, [ebp - 0x488]
push ecx
mov dword [ebp - 0x488], eax
call dword [sym.imp.MSVCP100.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base__]
add esp, 4
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x434]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e770
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x430]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x410]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x418]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x42c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x400]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 4
call fcn.00464150
mov edx, dword [sym.imp.MSVCP100.dll_const_std::ios_base::vftable]
lea eax, [ebp - 0x488]
push eax
mov dword [ebp - 0x488], edx
call dword [sym.imp.MSVCP100.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base__]
add esp, 4
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x434]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor al, al
jmp 0x487439