Function at 0x4a8a46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x103
push edi
xor ebx, ebx
lea eax, [esp + 0x235]
push ebx
push eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x23c], 0
call fcn.005117f0
add esp, 0xc
push edi
lea eax, [esp + 0x12d]
push ebx
push eax
mov byte [esp + 0x134], bl
call fcn.005117f0
add esp, 0xc
push edi
lea eax, [esp + 0x25]
push ebx
push eax
mov byte [esp + 0x2c], bl
call fcn.005117f0
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x10], ebx
jne 0x4a8ac6
xor eax, eax
jmp 0x4a8ec0
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
mov ebx, str.c_config.lcg
jne 0x4a8afa
lea eax, [esp + 0x128]
call fcn.004c3ab2
xor eax, eax
call fcn.004a7ca9
push eax
mov ecx, 0x104
lea eax, [esp + 0x234]
call fcn.004c3b66
jmp 0x4a8b17
test ecx, ecx
jne 0x4a8b1a
lea eax, [esp + 0x128]
call fcn.004c3ab2
push ebx
lea edi, [esp + 0x234]
call fcn.004682da
pop ecx
jmp 0x4a8b5c
push 0x5c7330
xor eax, eax
call fcn.00467c17
push eax
lea eax, [esp + 0x130]
push 0x56cf5c
push eax
call fcn.00511173
push ebx
push str.P2_DC001
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x24c]
push str._s_s_s
push eax
call fcn.00511173
add esp, 0x24
push ebx
push 0
push 0
call fcn.0048a119
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.004c53b7
add esp, 0x14
lea edi, [esp + 0x20]
call fcn.0042ad00
test eax, eax
je 0x4a8c04
mov eax, edi
call fcn.0042a76b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa
call ebx
call fcn.0042ad00
test eax, eax
je 0x4a8c04
mov eax, edi
call fcn.0042a76b
push 0x226
call ebx
call fcn.0042ad00
test eax, eax
je 0x4a8c04
mov eax, edi
call fcn.0042a76b
push 0x226
call ebx
call fcn.0042ad00
test eax, eax
je 0x4a8c04
mov eax, edi
call fcn.0042a76b
mov ecx, dword [ebp + 8]
mov eax, edi
push str._GetLastError_
push eax
xor eax, eax
call fcn.00467c17
push eax
push str.:8:PostPayments__s__FAILED:_DeleteFile__s__FAILED:_This_could_happen_on_a_limited_user_account___:__s
call fcn.004265da
add esp, 0x10
jmp 0x4a8abf
push 1
push dword [ebp + 8]
call fcn.004a7e71
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4a8c30
mov ecx, dword [ebp + 8]
call fcn.00467c17
push eax
push str.:5:PostPayments__s__FAILED:_GetPayments___FAILED:_out_of_memory.
call fcn.004265da
pop ecx
pop ecx
jmp 0x4a8abf
push 0x1d0b
push str..ProcessCC.c
mov edx, 0x530484
lea ecx, [esp + 0x28]
call fcn.0042d2c6
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x4a8c77
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
xor eax, eax
call fcn.00467c17
push eax
push str.:8:PostPayments__s__FAILED:_The_temp_local_file___s__could_not_be_opened_for_writing_
call fcn.004265da
add esp, 0xc
push edi
call fcn.00511758
jmp 0x4a8c2a
mov eax, dword [edi + 0x7c]
mov ecx, dword [esi + 0x7c]
lea ebx, [eax + ecx + 1]
mov eax, edi
call fcn.004a88a1
mov ebx, eax
test ebx, ebx
jne 0x4a8cc6
push dword [esi + 0x7c]
mov ecx, dword [ebp + 8]
push dword [0x7c]
call fcn.00467c17
push eax
push str.:5:PostPayments__s__FAILED:_AllocatePaymentNodeArray__d___d__1__FAILED.
call fcn.004265da
add esp, 0x10
test edi, edi
je 0x4a8cb8
push edi
call fcn.00511758
pop ecx
mov ecx, dword [esp + 0x14]
call fcn.0042d70e
jmp 0x4a8abf
mov eax, dword [esp + 0x18]
xor esi, esi
cmp dword [eax + 0x7c], esi
mov edi, 0x13c
jle 0x4a8cf3
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push ebx
call fcn.004a899e
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], edi
inc esi
cmp esi, dword [eax + 0x7c]
pop ecx
jl 0x4a8cda
push dword [esp + 0x14]
mov eax, dword [ebx + 0x7c]
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.005110f1
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x10], esi
jle 0x4a8d33
mov edx, ebx
mov dword [edx], edi
mov dword [edx + 8], 0x70
call fcn.004a8886
mov dword [edx + 4], eax
inc esi
add edx, edi
cmp esi, dword [esp + 0x10]
jl 0x4a8d19
push dword [esp + 0x14]
push dword [esp + 0x14]
push edi
push ebx
call fcn.005110f1
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x4a8d76
push dword [esp + 0x10]
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00467c17
push eax
push str.:7:PostPayments__s__FAILED:_fwrite___FAILED_to_write__d_nodes.
call fcn.004265da
mov ecx, dword [esp + 0x20]
add esp, 0xc
call fcn.0042d70e
push ebx
jmp 0x4a8c70
push ebx
call fcn.00511758
pop ecx
mov ecx, dword [esp + 0x14]
call fcn.0042d70e
xor esi, esi
push esi
push esi
push esi
push str.CCPAYCODE222
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040334c
add esp, 0x18
test eax, eax
jg 0x4a8ebd
mov edi, dword [ebp + 8]
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x24]
push eax
xor eax, eax
mov ecx, edi
call fcn.00467c17
push eax
push str.:7:PostPayments__s__FAILED:_CreateArchive___s_____s___FAILED:_The_payments_could_not_be_posted_to_TAMS.
call fcn.004265da
add esp, 0x10
lea edx, [esp + 0x128]
call fcn.004c3b34
test eax, eax
jne 0x4a8abf
call fcn.0046297d
mov ecx, eax
call fcn.00467c70
cmp edi, eax
je 0x4a8abf
cmp dword [0x6cbf24], esi
jne 0x4a8abf
push esi
mov dword [0x6cbf24], 1
call fcn.004629bb
push eax
call fcn.0046299c
push eax
lea eax, [esp + 0x134]
push eax
call fcn.0046f689
add esp, 0x10
call fcn.004629bb
push eax
call fcn.0046299c
push eax
lea ecx, [esp + 0x130]
call fcn.0046eb9d
cmp eax, esi
pop ecx
pop ecx
jge 0x4a8e77
push str._GetLastError_
call fcn.004629bb
push eax
call fcn.0046299c
push eax
lea eax, [esp + 0x134]
push eax
xor eax, eax
mov ecx, edi
call fcn.00467c17
push eax
push str.:7:PostPayments__s_:_LogonToServer__s___s___s__failed_because_of_invalid_user_name_and_password:__s
jmp 0x4a8ea1
jle 0x4a8ea9
push str._GetLastError_
call fcn.004629bb
push eax
call fcn.0046299c
push eax
lea eax, [esp + 0x134]
push eax
xor eax, eax
mov ecx, edi
call fcn.00467c17
push eax
push str.:6:PostPayments__s_:_LogonToServer__s___s___s__failed:__s
call fcn.00426c01
add esp, 0x18
push dword [esp + 0x18]
push edi
call fcn.004a8a46
pop ecx
pop ecx
mov dword [0x6cbf24], esi
jmp 0x4a8ec0
xor eax, eax
inc eax
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret