Function at 0x59f1a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x63c850
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x59f1d3
lea eax, [ebx + 0x58]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402a50
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x24]
push 0x689868
push ecx
call fcn.00600823
mov edi, eax
add esp, 0x14
test edi, edi
je 0x59f21e
push edi
call fcn.005ffb44
push eax
call fcn.005fdb1a
mov esi, eax
add esp, 8
test esi, esi
jg 0x59f245
push edi
call fcn.005faf97
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402550
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp esi, 0x1400
jle 0x59f252
mov esi, 0x1400
lea ecx, [esp + 0x14]
call fcn.004024e0
mov byte [esp + 0x28], 1
push esi
lea ecx, [esp + 0x18]
call fcn.00402830
push edi
push esi
mov ebp, eax
push 1
push ebp
call fcn.005fd808
push edi
call fcn.005faf97
push ebp
call fcn.00406a50
add esp, 0x18
test eax, eax
jne 0x59f397
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x59f344
push 0xa
push eax
call fcn.005fec0f
add esp, 8
test eax, eax
je 0x59f344
sub eax, dword [esp + 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x59f347
cmp esi, 0x1400
jge 0x59f2ca
dec esi
cmp edi, esi
je 0x59f347
lea ecx, [esp + 0x1c]
call fcn.004024e0
mov byte [esp + 0x28], 3
mov edx, dword [ebx + 0x28]
mov eax, dword [0x710578]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f60
mov edx, dword [0x71057c]
mov eax, dword [esp + 0x28]
push 0x50004
push edx
push eax
push 0
call fcn.00469b60
add esp, 0x1c
cmp eax, 7
je 0x59f389
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x59f326
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x59f330
lea eax, [ebx + 0x58]
mov ecx, dword [ebx + 0x14]
push eax
push 0x13bd
push 0x111
push ecx
jmp 0x59f444
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004024e0
mov byte [esp + 0x28], 2
mov edx, dword [ebx + 0x28]
mov eax, dword [0x710574]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f60
mov edx, dword [0x71057c]
mov eax, dword [esp + 0x28]
push 0x50004
push edx
push eax
push 0
call fcn.00469b60
add esp, 0x1c
cmp eax, 7
jne 0x59f3aa
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x1c]
call fcn.00402550
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00402550
jmp 0x59f21e
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x59f3d0
push 0xd
push eax
call fcn.005fec0f
add esp, 8
test eax, eax
je 0x59f3d0
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x59f3d0
mov byte [eax + ebp], 0
cmp edi, 0xffffffff
je 0x59f3d9
mov byte [edi + ebp], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x59f3f3
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x98
call fcn.005cfa6c
add esp, 4
test eax, eax
je 0x59f40f
mov ecx, eax
call fcn.00426840
mov esi, eax
jmp 0x59f411
xor esi, esi
mov ecx, dword [esp + 0x14]
push ecx
push 0x64edec
push esi
call fcn.00402f60
add esp, 0xc
push esi
push 0
mov dword [esi + 0x84], 4
mov dword [esi + 0x90], 0
mov edx, dword [ebx + 0x14]
push 0x2b3e
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x1c]
call fcn.00402550
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402550
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret