Function at 0x10005680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10169226
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x101ccf60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10005956
sub eax, 1
jne 0x1000595b
push 0x101af49c
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
push str.C:wintOutput.txt
push eax
call fcn.1014d1ee
mov eax, dword [ebp - 0x160]
add esp, 0xc
test eax, eax
je 0x1000594f
push 0
push 0
push eax
call fcn.1014cafc
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.10146f60
push dword [ebp - 0x160]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1014ce06
add esp, 0x24
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x15c]
push eax
call fcn.10005fc0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x12c], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x10005778
mov eax, dword [ecx]
jmp 0x1000577a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.10006c20
lea ecx, [ebp - 0x144]
call fcn.10002870
add esp, 0x18
lea ecx, [ebp - 0x12c]
push eax
call fcn.10005c30
mov eax, dword [ebp - 0x130]
cmp eax, 8
jb 0x100057c5
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.10007630
cmp dword [ebp - 0x118], 8
jb 0x100057dc
mov edx, dword [ebp - 0x12c]
test edx, edx
jne 0x100057e2
xor ecx, ecx
jmp 0x100057f6
lea edx, [ebp - 0x12c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100057e7
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x101d78d8
call fcn.10007b60
push 0xe
push str.CashClient.ini
mov ecx, 0x101d78d8
call fcn.100084b0
push ecx
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x144]
call fcn.10008930
add esp, 4
mov esi, 0x101d78ac
mov ecx, esi
push eax
call fcn.10005e90
lea ecx, [ebp - 0x144]
call fcn.10005e20
push dword [ebp - 0x160]
call fcn.1014b704
cmp dword [0x101d78c0], 0x10
lea eax, [ebp - 0x160]
push 0x101aee00
cmovae esi, dword [0x101d78ac]
push esi
push eax
call fcn.1014d1ee
mov eax, dword [ebp - 0x160]
add esp, 0x10
test eax, eax
je 0x10005902
push eax
push 7
push 1
push str.begin_r_n
call fcn.1014d049
mov eax, dword [0x101d78d8]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x100058ab
push dword [eax - 0xc]
mov ecx, 0x101d78d8
call fcn.100071b0
mov eax, dword [0x101d78d8]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10005cb0
lea ecx, [ebp - 0x144]
call fcn.10002960
push dword [ebp - 0x160]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push dword [ebp - 0x134]
cmovae eax, dword [ebp - 0x144]
push 1
push eax
call fcn.1014d049
push dword [ebp - 0x160]
call fcn.1014b704
add esp, 0x2c
lea ecx, [ebp - 0x144]
call fcn.10005e20
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x10005920
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10007630
xor eax, eax
mov dword [ebp - 0x118], 7
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x12c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.10005e20
call fcn.10004c90
jmp 0x1000595b
call fcn.10005540
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013ee40
mov esp, ebp
pop ebp
ret 0xc