Function at 0x417390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4556e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x46dd54]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d0]
mov dword [esp + 0x14], eax
add eax, 0x24
lea edx, [esp + 0x13c]
mov edi, ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4173e4
lea eax, [esp + 0x13c]
push 0x5c
push eax
call fcn.0043b0e0
lea ebp, [edi + 0x1a8]
xor ebx, ebx
add esp, 8
cmp ebp, ebx
mov esi, eax
jne 0x417415
call fcn.00437128
cmp esi, ebx
je 0x4176bf
lea eax, [esp + 0x13c]
mov byte [esi + 1], bl
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417440
sub eax, edx
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401d00
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov dword [esp + 0x1d0], ebx
call fcn.00413920
mov esi, dword [eax]
test esi, esi
mov ecx, dword [ebp + 4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
je 0x417489
cmp esi, ebp
je 0x41748e
call fcn.00437128
cmp ebx, dword [esp + 0x1c]
jne 0x417583
lea edx, [edi + 0x90]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4174a3
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00401d00
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4174c3
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x44]
call fcn.0040f2a0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x4174ef
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.00417240
lea eax, [esp + 0x13c]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417516
sub eax, edx
push eax
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x28]
call fcn.00401d00
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0x1d0], 1
call fcn.00413920
cmp dword [esp + 0x38], 0x10
mov esi, dword [eax]
mov ebx, dword [eax + 4]
jb 0x417565
mov eax, dword [esp + 0x24]
push eax
call fcn.0041aea7
add esp, 4
test esi, esi
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
je 0x417574
cmp esi, ebp
je 0x417579
call fcn.00437128
cmp ebx, dword [esp + 0x1c]
jne 0x417583
xor esi, esi
jmp 0x417599
test esi, esi
jne 0x41758c
call fcn.00437128
cmp ebx, dword [esi + 4]
jne 0x417596
call fcn.00437128
mov esi, dword [ebx + 0x28]
cmp dword [esp + 0x54], 0x10
jb 0x4175ad
mov edx, dword [esp + 0x40]
push edx
call fcn.0041aea7
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
je 0x4176bf
mov ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [ebx + 0x18], ecx
push esi
mov ecx, edi
mov dword [ebx + 0x1c], eax
call fcn.00414f40
mov dword [ebx + 0x20], eax
mov ebp, dword [esi + 0x10]
test ebp, ebp
mov ebx, dword [esp + 0x1d4]
je 0x41765d
push 0xe4
lea edx, [esp + 0x5c]
push 0
push edx
call fcn.00437da0
mov eax, dword [edi + 0x5c]
push 0
push 0
push ebp
push eax
call fcn.0043afba
mov ecx, dword [edi + 0x5c]
push ecx
push 1
lea edx, [esp + 0x7c]
push 0xe4
push edx
call fcn.0043af06
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x5c]
push 0
push 0
push eax
push ecx
mov dword [esp + 0xb0], ebx
call fcn.0043afba
mov ebp, dword [edi + 0x5c]
push ebp
push 1
lea edx, [esp + 0x9c]
push 0xe4
push edx
call fcn.00436e9a
add esp, 0x4c
push ebp
call fcn.004387d0
add esp, 4
mov eax, dword [esp + 0x14]
push 0
mov dword [esi + 0x10], ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [edi + 0x5c]
push 0
push ecx
push edx
call fcn.0043afba
mov ebp, dword [edi + 0x5c]
push ebp
push 1
push 0xec
push esi
call fcn.00436e9a
push ebp
call fcn.004387d0
mov eax, dword [edi + 0x5c]
push 0
push 0
push ebx
push eax
call fcn.0043afba
mov edi, dword [edi + 0x5c]
mov ecx, dword [esp + 0x48]
push edi
push 1
push 0xe4
push ecx
call fcn.00436e9a
add esp, 0x44
push edi
call fcn.004387d0
add esp, 4
xor eax, eax
jmp 0x4176c2
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00436c82
add esp, 0x1b8
ret 8