Function at 0x519137
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa3c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor ebx, ebx
lea eax, [ebp - 0x20f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0xa20], esi
mov byte [ebp - 0x210], 0
call fcn.005306b0
xor eax, eax
mov word [ebp - 0xa38], bx
lea edi, [ebp - 0xa36]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x7ff
stosw word es:[edi], ax
lea eax, [ebp - 0xa0f]
push ebx
push eax
mov byte [ebp - 0xa10], bl
call fcn.005306b0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.005306b0
add esp, 0xc
cmp esi, ebx
je 0x519728
lea eax, [ebp - 0xa10]
call fcn.004ccb8b
lea eax, [ebp - 0x108]
call fcn.004ccb8b
mov ebx, str._PUT_SERVER_IP_HERE_COMMONUpload_Decompositions_
push ebx
push str._sPayments_Received.txt
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004ce4e5
add esp, 0x10
call fcn.005190ac
test eax, eax
mov dword [ebp - 0xa28], eax
jne 0x51922b
lea eax, [ebp - 0x210]
call fcn.004314ff
push ebx
push str._sPayments_Received__ERROR_.txt
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004ce4e5
add esp, 0x10
and dword [ebp - 0xa1c], 0
lea eax, [ebp - 0xa38]
push eax
call fcn.004fb9a6
xor ebx, ebx
xor eax, eax
cmp dword [esi + 0x7c], ebx
pop ecx
jle 0x519254
inc eax
mov dword [esi + 0x130], ebx
cmp eax, dword [esi + 0x7c]
jl 0x519248
push ebx
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.004328fa
mov edi, eax
cmp edi, ebx
pop ecx
jbe 0x51931b
lea eax, [edi + edi]
push 1
push eax
call fcn.00530848
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xa18], eax
je 0x51931b
push 0x2db0
push str..UpdatePAULA.c
mov edx, 0x55eb94
lea ecx, [ebp - 0x210]
call fcn.00434df1
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xa14], eax
je 0x51930f
push eax
push edi
push 1
push dword [ebp - 0xa18]
call fcn.00530e93
add esp, 0x10
cmp dword [esi + 0x7c], ebx
jle 0x519302
lea edi, [esi + 0x114]
cmp dword [edi - 0x60], 0
je 0x5192f6
push 0xa
push dword [edi]
xor eax, eax
call fcn.004688bd
push eax
push dword [ebp - 0xa18]
call fcn.00531210
add esp, 0x10
test eax, eax
je 0x5192f6
mov dword [edi + 0x1c], 1
inc ebx
add edi, 0x13c
cmp ebx, dword [esi + 0x7c]
jl 0x5192cb
mov ecx, dword [ebp - 0xa14]
call fcn.00435239
xor ebx, ebx
push dword [ebp - 0xa18]
call fcn.0053061e
pop ecx
mov edi, str..UpdatePAULA.c
push 0x2dbd
push edi
mov edx, 0x54f4f8
lea ecx, [ebp - 0x210]
call fcn.00434df1
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xa14], eax
jne 0x519379
push str.Cannot_open_payment_archive___
call fcn.0042b70b
pop ecx
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2dc1
push edi
push 0x36ee80
push 1
push str.Server_is_stuck___
push str.Payment_Archive_Stuck_
call fcn.00402367
add esp, 0x18
jmp 0x519320
cmp dword [esi + 0x7c], ebx
mov dword [ebp - 0xa18], ebx
jle 0x519677
lea ebx, [esi + 0x90]
cmp dword [ebx + 0xa0], 0
jne 0x51963f
cmp dword [ebx + 0x28], 0
mov dword [ebp - 0xa24], str.AUTO_PAY
jne 0x5193b5
mov dword [ebp - 0xa24], str.Post
mov ecx, str.10.210.27.10
call fcn.004707d3
cmp dword [ebx], eax
je 0x5193ed
mov ecx, str.10.210.23.10
call fcn.004707d3
cmp dword [ebx], eax
je 0x5193ed
mov ecx, str.10.210.28.78
call fcn.004707d3
cmp dword [ebx], eax
je 0x5193ed
mov ecx, str.10.210.27.51
call fcn.004707d3
cmp dword [ebx], eax
jne 0x519418
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebx + 0x30]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9a51
add esp, 0x20
test eax, eax
jne 0x519639
push 0x56afb0
push dword [ebp - 0xa14]
call fcn.00530ffb
cmp dword [ebx + 0x50], 0
pop ecx
pop ecx
je 0x519468
cmp dword [ebx + 0x54], 0
je 0x519446
movzx edi, byte [ebx - 0x7d]
call fcn.004cdf5c
push eax
movzx eax, byte [ebx - 0x7d]
jmp 0x519454
movzx edi, word [ebx + 0x46]
call fcn.004cdf5c
push eax
movzx eax, word [ebx + 0x46]
push eax
push str.Auto_bill_on_the__d_s_of_each_month___n
push dword [ebp - 0xa14]
call fcn.00530ffb
add esp, 0x10
mov ecx, dword [ebx]
push 0
push 0
xor eax, eax
call fcn.0047077a
mov ecx, eax
call fcn.004bddbd
test eax, eax
pop ecx
pop ecx
je 0x519494
push str.REMOVE_EXPIRED_STATUS_from_HasStoreExpired_____:
push dword [ebp - 0xa14]
call fcn.00530ffb
pop ecx
pop ecx
push dword [ebx + 0xa8]
lea esi, [ebx + 0x5c]
push dword [ebx + 0x84]
lea edi, [ebx - 0xc]
push dword [ebx + 0x14]
push dword [ebx + 0x88]
push dword [ebx + 0x2c]
call fcn.00468753
pop ecx
push eax
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x58]
push dword [ebx + 0x7c]
push esi
call fcn.004a896c
mov ecx, dword [ebx]
push eax
xor eax, eax
call fcn.0047077a
push eax
movzx eax, word [ebx + 0x40]
push edi
push eax
movzx eax, word [ebx + 0x46]
push eax
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx - 0x7e]
push dword [ebp - 0xa24]
call fcn.004ce244
push eax
push 0
sub esp, 0x10
lea esi, [ebx + 0x30]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa0a6
add esp, 0x14
push eax
push str._s_for__s___s_ON__02d__02d__04d__Store__s__s___s_s_exp__02d__02d__Amt:__s__Printed:__d__Posted_By_Emp_d__Confirmation:__u__Revision:__u
push dword [ebp - 0xa14]
call fcn.00530ffb
add esp, 0x4c
lea eax, [ebp - 0x108]
call fcn.004ccb8b
call fcn.004fb8ff
push eax
sub esp, 0x10
lea esi, [ebx + 0x40]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f96f4
add esp, 0x10
push eax
call fcn.004f9a0c
test eax, eax
pop ecx
pop ecx
je 0x519586
movzx edi, word [ebx + 0x46]
call fcn.004cdf5c
push eax
movzx eax, word [ebx + 0x46]
push eax
movzx eax, word [ebx + 0x42]
call fcn.004ce244
push eax
push str.dont_bill_till__s__d_d
mov esi, 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004ce4e5
add esp, 0x18
jmp 0x5195a4
push str.bill_TODAY
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004ce4e5
add esp, 0xc
mov esi, 0x100
cmp dword [ebx + 0x50], 0
je 0x5195eb
cmp dword [ebx + 0x54], 0
je 0x5195d6
movzx edi, byte [ebx - 0x7d]
call fcn.004cdf5c
push eax
movzx eax, byte [ebx - 0x7d]
push eax
push str.__RECUR_PAY_when_due_on_the__d_s_
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004ce4e5
add esp, 0x14
jmp 0x5195eb
push str.__RECUR_PAY_each_month_
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004ce4e5
add esp, 0xc
push dword [ebx + 0x80]
lea esi, [ebx + 0x5c]
push dword [ebx + 0x7c]
call fcn.004cca82
push eax
mov eax, dword [ebx + 0x58]
call fcn.004a896c
push eax
push dword [ebx + 0x2c]
call fcn.00468753
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx - 0xc]
push eax
push str._n_s:__s:__s__s_s__d__d
mov eax, 0x800
lea edi, [ebp - 0xa10]
call fcn.004ce4a3
add esp, 0x20
inc dword [ebp - 0xa1c]
mov esi, dword [ebp - 0xa20]
inc dword [ebp - 0xa18]
mov eax, dword [ebp - 0xa18]
add ebx, 0x13c
cmp eax, dword [esi + 0x7c]
jl 0x51938e
cmp dword [ebp - 0xa1c], 0
jle 0x519675
push str._n_n_nA_NEW_PAYMENT_HAS_BEEN_POSTED__n_n
push dword [ebp - 0xa14]
call fcn.00530ffb
pop ecx
pop ecx
xor ebx, ebx
mov ecx, dword [ebp - 0xa14]
call fcn.00435239
cmp dword [ebp - 0xa1c], ebx
jle 0x519699
cmp dword [ebp - 0xa28], ebx
je 0x5196a4
call fcn.00518f93
jmp 0x5196a4
lea eax, [ebp - 0x210]
call fcn.004314ff
cmp dword [ebp - 0xa1c], ebx
jle 0x519728
push str.Sending_Admin_Notification...
call fcn.0041679b
pop ecx
call fcn.00533e19
add eax, 0x20
push eax
call fcn.00532513
mov dword [esp], 0x800
push ebx
lea eax, [ebp - 0xa10]
push eax
mov ebx, str.A_new_payment_has_been_posted__n
call fcn.004cdb22
add esp, 0xc
push 0x2e1b
push str..UpdatePAULA.c
push 0
push 1
lea eax, [ebp - 0xa10]
push eax
push str.New_Payment_Received
call fcn.00402367
add esp, 0x18
test eax, eax
je 0x51970e
push str.SENT.
jmp 0x519713
push str.SEND_FAILED_
call fcn.0041679b
pop ecx
call fcn.00533e19
add eax, 0x20
push eax
call fcn.00532513
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret