Function at 0x4b0fde
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x4a7]
push ebx
push eax
mov byte [ebp - 0x4a8], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x18f]
push ebx
push eax
mov byte [ebp - 0x190], bl
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x297]
push ebx
push eax
mov byte [ebp - 0x298], bl
call fcn.005306b0
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.005306b0
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.005306b0
add esp, 0xc
push 0x138
lea eax, [ebp - 0x5e4]
push ebx
push eax
mov dword [ebp - 0x740], ebx
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x5e8], ebx
call fcn.005306b0
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x48]
push ebx
push eax
mov eax, edi
mov dword [ebp - 0x72c], ebx
mov dword [ebp - 0x744], edi
call fcn.004a6054
test eax, eax
pop ecx
pop ecx
jne 0x4b1129
lea eax, [ebp - 0x48]
call fcn.004ccb8b
cmp edi, 0xffffffff
je 0x4b1129
xor eax, eax
call fcn.004b0df7
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:7:GetPayments__s___d__EAP:_GetStoreIdFromPamentDB___s_____s___FAILED.
call fcn.0042b70b
add esp, 0x14
call fcn.004935a3
test eax, eax
je 0x4b1129
call fcn.004187ab
test eax, eax
jne 0x4b1122
push 0x50000
push ebx
push str.STORE_NOT_FOUND
mov ecx, edi
call fcn.0047077a
push eax
push str.The_store_with_ip_address___s__does_NOT_exist_
push ebx
call fcn.004ce595
add esp, 0xc
push eax
push ebx
call fcn.00418a6e
add esp, 0x14
xor eax, eax
jmp 0x4b19e4
mov ebx, 0x144
xor eax, eax
call fcn.004b1a0e
test eax, eax
mov dword [ebp - 0x734], eax
jne 0x4b1158
push 0x1b
mov ecx, edi
call fcn.0047077a
push eax
push str.:5:GetPayments__s__FAILED:_AllocatePaymentNodeArray__d__FAILED.
call fcn.0042b70b
add esp, 0xc
jmp 0x4b1122
call fcn.004935a3
test eax, eax
mov esi, 0x104
mov ebx, str.c_config.lcg
je 0x4b13ca
call fcn.004187ab
test eax, eax
jne 0x4b13ca
cmp edi, 0xffffffff
je 0x4b13cf
call fcn.00434890
mov edx, eax
call fcn.004ccc0d
test eax, eax
jne 0x4b13ca
push esi
mov byte [ebp - 0x3a0], al
xor edi, edi
lea eax, [ebp - 0x39f]
push edi
push eax
call fcn.005306b0
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x724]
push edi
push eax
mov dword [ebp - 0x728], edi
call fcn.005306b0
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
call fcn.0047077a
push eax
lea eax, [ebp - 0x48]
push eax
push str._PUT_SERVER_IP_HERE_COMMONUpload_Decompositions_
push 0x5afb08
lea edi, [esi + 1]
lea eax, [ebp - 0x3a0]
push edi
push eax
call fcn.004ce4e5
lea eax, [ebp - 0x728]
push 1
push eax
lea ecx, [ebp - 0x3a0]
call fcn.00433029
mov dword [ebp - 0x730], eax
add esp, 0x20
lea eax, [ebp - 0x3a0]
call fcn.004ccb8b
cmp dword [ebp - 0x730], 0xffffffff
je 0x4b1292
jmp 0x4b1249
lea eax, [ebp - 0x6fc]
call fcn.004ccb8b
mov ecx, dword [ebp - 0x730]
lea eax, [ebp - 0x728]
call fcn.004333a6
test eax, eax
je 0x4b1252
test byte [ebp - 0x728], 0x10
je 0x4b1229
lea edx, [ebp - 0x6fc]
call fcn.004ccc0d
test eax, eax
jne 0x4b1287
mov ecx, dword [ebp - 0x730]
lea eax, [ebp - 0x728]
call fcn.00433421
lea eax, [ebp - 0x6fc]
push eax
mov ecx, edi
lea eax, [ebp - 0x3a0]
call fcn.004ccc3f
pop ecx
mov eax, dword [ebp - 0x730]
call fcn.004334b6
lea edx, [ebp - 0x3a0]
call fcn.004ccc0d
test eax, eax
je 0x4b12c9
push 0x251000
push str.NOT_SETUP_FOR_PAYMENT
push str.This_store_has_not_been_setup_for_payment_yet_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x734]
call fcn.0053061e
pop ecx
jmp 0x4b1122
lea eax, [ebp - 0x3a0]
call fcn.004cd338
push ebx
push str.Misc_Files_
lea eax, [ebp - 0x3a0]
push eax
mov edi, 0x54f4c0
push edi
lea eax, [ebp - 0x190]
push esi
push eax
call fcn.004ce4e5
add esp, 0x18
xor eax, eax
push eax
push ebx
push str.ServerSync_
push eax
push eax
call fcn.00493030
pop ecx
pop ecx
push eax
push edi
xor edi, edi
push edi
call fcn.004ce595
add esp, 0x14
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00431386
add esp, 0xc
push edi
push ebx
push 0x54f4f0
push str.empty
push edi
call fcn.004ce595
pop ecx
pop ecx
mov edi, eax
call fcn.00470e3d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00431386
add esp, 0xc
test eax, eax
jne 0x4b1389
lea edi, [ebp - 0x190]
call fcn.00432263
test eax, eax
push 0x251000
push str.No_Payment_Archive
je 0x4b1377
push str.FAILED_to_copy_this_stores_payment_archive_
jmp 0x4b137c
push str.This_store_does_NOT_have_a_payment_archive_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4b19de
push 1
push ebx
push 0x54f4f0
push str.empty
push 0
call fcn.004ce595
pop ecx
pop ecx
mov edi, eax
call fcn.00470e3d
pop ecx
pop ecx
push eax
call fcn.00431553
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 0x744], eax
call fcn.0046b2ee
mov ecx, eax
call fcn.004707d3
mov dword [ebp + 8], eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b13f9
lea eax, [ebp - 0x298]
call fcn.004ccb8b
xor eax, eax
call fcn.004b0df7
push eax
mov ecx, esi
lea eax, [ebp - 0x4a8]
call fcn.004ccc3f
and dword [ebp + 8], 0
mov edi, dword [ebp + 8]
pop ecx
jmp 0x4b1470
test edi, edi
jne 0x4b142a
push edi
lea edi, [ebp - 0x298]
call fcn.00470f4a
pop ecx
push ebx
push str.P2_DC001
mov eax, edi
push eax
push 0x5a46d8
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.004ce4e5
mov edi, dword [ebp + 8]
jmp 0x4b146d
push 0x5f5380
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push 0x58cc48
lea eax, [ebp - 0x298]
push esi
push eax
call fcn.004ce4e5
add esp, 0x14
push ebx
push str.P2_DC001
lea eax, [ebp - 0x298]
push eax
push 0x5a46d8
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.004ce4e5
add esp, 0x18
lea edx, [ebp - 0x298]
call fcn.004ccc0d
test eax, eax
jne 0x4b14f6
call fcn.0046b32c
push eax
call fcn.0046b30d
push eax
lea ecx, [ebp - 0x298]
call fcn.004777b1
test eax, eax
pop ecx
pop ecx
jge 0x4b14c5
push str._GetLastError_
call fcn.0046b32c
push eax
call fcn.0046b30d
push eax
lea eax, [ebp - 0x298]
push eax
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:5:GetPayments__s_:_LogonToServer__s___s___s__failed_because_of_invalid_user_name_and_password:__s
jmp 0x4b14ee
jle 0x4b14f6
push str._GetLastError_
call fcn.0046b32c
push eax
call fcn.0046b30d
push eax
lea eax, [ebp - 0x298]
push eax
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:4:GetPayments__s_:_LogonToServer__s___s___s__failed:__s
call fcn.0042bd38
add esp, 0x18
push 0xa
xor eax, eax
call fcn.00468c65
pop ecx
push eax
push ebx
push 0
push 0
call fcn.00493154
pop ecx
pop ecx
push eax
push 0x5afc70
lea eax, [ebp - 0x190]
push esi
push eax
call fcn.004ce4e5
push 0
lea eax, [ebp - 0x190]
push str.CCPAYCODE222
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00404a71
add esp, 0x24
test eax, eax
jg 0x4b1569
cmp dword [ebp + 0xc], 0
jne 0x4b19de
lea eax, [ebp - 0x4a8]
call fcn.004ccf84
push eax
call fcn.00432310
test eax, eax
pop ecx
jne 0x4b19de
jmp 0x4b12b8
mov ecx, ebx
lea ebx, [ebp - 0x190]
call fcn.004cd3c9
push 0x1bb2
push str..ProcessCC.c
mov edx, 0x54f4b8
mov ecx, ebx
call fcn.00434df1
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x738], esi
jne 0x4b15bf
lea eax, [ebp - 0x190]
push eax
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:8:GetPayments__s__has_encountered_an_impossible_exception:_The_temp_local_file___s__could_not_be_read_accessed_
call fcn.0042b70b
add esp, 0xc
jmp 0x4b19de
push esi
push 1
lea eax, [ebp - 0x73c]
push 4
push eax
mov dword [ebp - 0x73c], ebx
call fcn.00530e93
add esp, 0x10
cmp dword [ebp - 0x73c], 0x1f4
jbe 0x4b160e
push dword [ebp - 0x73c]
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:6:GetPayments__s__FAILED:_The_number_of_nodes_is_too_large:__u
call fcn.0042b70b
add esp, 0xc
mov ecx, esi
call fcn.00435239
jmp 0x4b19de
cmp dword [ebp - 0x73c], ebx
mov dword [ebp - 0x730], ebx
jle 0x4b198a
mov ebx, 0xc4
push 0x13c
lea eax, [ebp - 0x5e8]
push 0
push eax
call fcn.005306b0
add esp, 0xc
push dword [ebp - 0x738]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x5e8]
push 4
push eax
call fcn.00530e93
push dword [ebp - 0x738]
lea eax, [ebp - 0x5e4]
push esi
push 4
push eax
call fcn.00530e93
push dword [ebp - 0x738]
lea eax, [ebp - 0x5e0]
push esi
push 4
push eax
call fcn.00530e93
mov eax, dword [ebp - 0x5e0]
add esp, 0x30
cmp eax, 0xa
jb 0x4b195b
lea ecx, [eax + 0xa]
cmp dword [ebp - 0x5e8], ecx
jb 0x4b196d
cmp eax, 0x70
jbe 0x4b16a6
push 0x70
pop eax
push dword [ebp - 0x738]
add eax, 0xfffffffc
push esi
push eax
lea eax, [ebp - 0x5dc]
push eax
call fcn.00530e93
add esp, 0x10
cmp dword [ebp - 0x5e0], 0x70
jbe 0x4b16fe
push 0x70
push dword [ebp - 0x5e0]
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:8:GetPayments__s__EOP:_The_invoice_struct_size_has_DECREASED_from__d_to__d_bytes__
call fcn.0042bd38
mov eax, dword [ebp - 0x5e0]
push esi
add eax, 0xffffff90
push eax
push dword [ebp - 0x738]
call fcn.00532310
add esp, 0x1c
mov esi, dword [ebp - 0x5e8]
sub esi, dword [ebp - 0x5e0]
sub esi, 8
cmp esi, ebx
mov eax, esi
jb 0x4b1715
mov eax, ebx
push dword [ebp - 0x738]
push 1
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.00530e93
add esp, 0x10
cmp esi, ebx
jbe 0x4b175e
push ebx
push esi
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:8:GetPayments__s__EOP:_The_struct_size_has_DECREASED_from__d_to__d_bytes__
call fcn.0042bd38
push 1
add esi, 0xffffff3c
push esi
push dword [ebp - 0x738]
call fcn.00532310
add esp, 0x1c
lea edx, [ebp - 0x5e8]
call fcn.004b19f3
cmp eax, dword [ebp - 0x5e4]
je 0x4b179f
call fcn.004b19f3
push eax
push dword [ebp - 0x5e4]
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:5:GetPayments__s__FAILED:_The_checksum_should_be__u_but_is__u.
call fcn.0042b70b
add esp, 0x10
inc dword [ebp - 0x72c]
jmp 0x4b1941
push dword [ebp - 0x5dc]
call fcn.004f9815
test eax, eax
pop ecx
je 0x4b17c7
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:9:GetPayments__s__FAILED:_An_uninitialized_invoice_was_encountered_during_loading_
call fcn.0042b70b
pop ecx
pop ecx
jmp 0x4b1794
lea edx, [ebp - 0x48]
call fcn.004ccc0d
test eax, eax
jne 0x4b18e1
test edi, edi
je 0x4b18e1
cmp edi, 0xffffffff
je 0x4b18e1
cmp dword [ebp - 0x500], 0xa
mov esi, dword [ebp - 0x558]
jne 0x4b184b
test esi, esi
je 0x4b180a
lea edx, [ebp - 0x564]
call fcn.004ccc0d
test eax, eax
je 0x4b184b
cmp dword [ebp - 0x740], 0
je 0x4b1867
lea edx, [ebp - 0x88]
call fcn.004ccc0d
test eax, eax
jne 0x4b1867
mov eax, dword [ebp - 0x740]
mov dword [ebp - 0x558], eax
lea eax, [ebp - 0x88]
push eax
push 0xa
pop ecx
lea eax, [ebp - 0x564]
call fcn.004ccc3f
mov esi, dword [ebp - 0x558]
jmp 0x4b1866
lea eax, [ebp - 0x564]
push eax
push 0x40
pop ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x740], esi
call fcn.004ccc3f
pop ecx
lea edx, [ebp - 0x564]
call fcn.004ccc0d
test eax, eax
jne 0x4b18e1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x564]
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
jne 0x4b18e1
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
jne 0x4b18e1
test esi, esi
je 0x4b18e1
cmp esi, edi
je 0x4b18e1
cmp esi, dword [ebp - 0x744]
je 0x4b18e1
mov ecx, esi
call fcn.0047077a
push eax
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x48]
push eax
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:7:GetPayments__s__EAP:_A_payment_from_another_store_has_been_detected_at__s:__s__s
call fcn.0042bd38
add esp, 0x14
jmp 0x4b1794
mov eax, dword [ebp - 0x73c]
cmp eax, 0x1b
jb 0x4b18fb
add eax, 0xffffffe5
cmp dword [ebp - 0x730], eax
jle 0x4b1794
lea eax, [ebp - 0x5e8]
push eax
call fcn.004a81a2
test eax, eax
pop ecx
je 0x4b1794
mov edi, dword [ebp - 0x730]
sub edi, dword [ebp - 0x72c]
mov eax, dword [ebp - 0x734]
mov ecx, dword [eax + 0x78]
imul edi, edi, 0x13c
mov dword [ebp - 0x570], ecx
push 0x4f
add edi, eax
pop ecx
lea esi, [ebp - 0x5e8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
inc dword [ebp - 0x730]
mov eax, dword [ebp - 0x730]
cmp eax, dword [ebp - 0x73c]
jl 0x4b1625
jmp 0x4b198a
push eax
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:9:GetPayments__s__FAILED:_The_invoice_struct_size___d__could_not_be_loaded_
jmp 0x4b1982
push dword [ebp - 0x5e8]
xor eax, eax
mov ecx, edi
call fcn.0047077a
push eax
push str.:9:GetPayments__s__FAILED:_The_struct_size___d__could_not_be_loaded_
call fcn.0042b70b
add esp, 0xc
mov ecx, dword [ebp - 0x730]
sub ecx, dword [ebp - 0x72c]
xor edx, edx
test ecx, ecx
jle 0x4b19b6
mov eax, dword [ebp - 0x734]
add eax, 0x80
mov dword [eax], edx
mov dword [eax - 4], ecx
inc edx
add eax, 0x13c
cmp edx, ecx
jl 0x4b19a7
mov ecx, dword [ebp - 0x738]
call fcn.00435239
lea eax, [ebp - 0x190]
call fcn.004314ff
lea eax, [ebp - 0x190]
call fcn.004ccf84
mov ecx, eax
call fcn.004304df
mov eax, dword [ebp - 0x734]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret