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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431500
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43fb24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 0x20], ecx
call fcn.00402a10
mov eax, dword [esi + 4]
mov ecx, 0x435b24
test al, 0x40
je 0x417b78
mov ecx, 0x435b20
jmp 0x417b81
test al, 0x20
je 0x417b81
mov ecx, 0x435b1c
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [esi], 0
call fcn.00422af0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x417bb5
mov ecx, esi
call fcn.00415210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
xor edi, edi
mov byte [ebp - 0xd], 1
mov dword [esi + 0x18], 1
test cl, 0x10
je 0x417d63
push 2
push edi
push eax
call fcn.004229b8
mov ecx, dword [esi]
push ecx
call fcn.004228c9
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.004229b8
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0x1c
cmp eax, ebx
jge 0x417c05
mov ebx, eax
test ebx, ebx
je 0x417e02
push ebx
call fcn.0042174b
mov ecx, dword [esi]
push ecx
push 1
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.00422718
add esp, 0x14
cmp eax, 1
sete al
mov byte [ebp - 0xd], al
test al, al
je 0x417d52
and dword [esi + 4], 0xfffffffa
mov dword [ebp - 0x14], edi
cmp dword [0x43f6d0], edi
je 0x417caa
xor eax, eax
nop
mov ecx, dword [eax + 0x43f6d4]
test ecx, ecx
jle 0x417c6a
cmp edi, ebx
jge 0x417c6a
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edi]
mov edx, dword [eax + 0x43f6d0]
cmp cl, byte [edi + edx]
mov ecx, dword [eax + 0x43f6d4]
jne 0x417c6a
inc edi
cmp edi, ecx
jl 0x417c4a
mov eax, dword [ebp - 0x14]
cmp edi, ecx
je 0x417c84
inc eax
mov dword [ebp - 0x14], eax
xor edi, edi
shl eax, 4
cmp dword [eax + 0x43f6d0], edi
jne 0x417c40
jmp 0x417caa
shl eax, 4
mov edx, dword [eax + 0x43f6dc]
or edx, dword [esi + 4]
mov dword [esi + 4], edx
cmp edi, 2
jne 0x417c9b
mov dword [esi + 0x18], edi
mov eax, dword [eax + 0x43f6d8]
lea ecx, [esi + 0x24]
push eax
call fcn.00403210
cmp ebx, edi
jle 0x417cbc
mov ecx, dword [esi]
push 0
push edi
push ecx
call fcn.004229b8
add esp, 0xc
test edi, edi
jne 0x417d34
mov edx, dword [0x43faf0]
mov eax, dword [edx + 0xc]
mov ecx, 0x43faf0
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ebx
push ecx
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00402d30
push eax
call fcn.00420960
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402a70
mov edx, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00414330
add esp, 8
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00403180
lea ecx, [ebp - 0x1c]
call fcn.00402ac0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ac0
mov edx, dword [esi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x24]
jne 0x417d52
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x3c
jne 0x417d52
push 0x433ee4
call fcn.00403210
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0041fbfc
add esp, 4
jmp 0x417df8
test cl, 0x20
je 0x417e02
test cl, 0x40
je 0x417d89
push 2
push 0
push eax
call fcn.004229b8
mov edx, dword [esi]
push edx
call fcn.004228c9
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x43f6d0], ecx
je 0x417e02
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x43f6dc], edx
jne 0x417db0
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x43f6d0], edi
jne 0x417d98
jmp 0x417e02
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x43f6d4]
cmp edi, 2
jne 0x417dc3
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x43f6d8]
lea ecx, [esi + 0x24]
push eax
call fcn.00403210
cmp dword [esi + 0x10], 0
je 0x417ddc
xor edi, edi
jmp 0x417e02
mov ecx, dword [esi]
mov edx, dword [ebx + 0x43f6d0]
push ecx
push 1
push edi
push edx
call fcn.0042218d
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x417b9a
test byte [esi + 4], 0x40
je 0x417e10
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
jmp 0x417e13
mov dword [esi + 0x14], edi
test edi, edi
je 0x417e41
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [eax], 0x435b18
call fcn.00417970
add esp, 0x18
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4