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

Disassembly:
push 0xffffffffffffffff
push 0x45951b
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x472cf0]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472cf0]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x300]
push 0xe4
xor ebx, ebx
lea eax, [esp + 0x20c]
mov ebp, ecx
mov esi, dword [ebp + 0x5c]
push ebx
push eax
call fcn.0043a0d0
push 0xe4
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.0043a0d0
push 0xec
lea edx, [esp + 0x138]
push ebx
push edx
call fcn.0043a0d0
mov eax, dword [edi + 0x1c]
add esp, 0x24
cmp eax, ebx
je 0x41b5bd
push ebx
push ebx
push eax
push esi
call fcn.0043f42f
mov eax, dword [ebp + 0x5c]
push eax
push 1
lea ecx, [esp + 0x220]
push 0xe4
push ecx
call fcn.0043f37b
add esp, 0x20
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x41b5e2
push ebx
push ebx
push eax
push esi
call fcn.0043f42f
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.0043f37b
add esp, 0x20
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x41b60a
push ebx
push ebx
push eax
push esi
call fcn.0043f42f
push esi
push 1
lea eax, [esp + 0x134]
push 0xec
push eax
call fcn.0043f37b
add esp, 0x20
lea eax, [esp + 0x140]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b624
sub eax, edx
push eax
lea ecx, [esp + 0x144]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401f40
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
add ebp, 0x1a8
push eax
mov ecx, ebp
mov dword [esp + 0x300], ebx
call fcn.0041af00
cmp dword [esp + 0x34], 0x10
jb 0x41b673
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041d9db
add esp, 4
cmp ebp, ebx
jne 0x41b67c
call fcn.0043a87e
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41b688
cmp ebx, ebp
je 0x41b68d
call fcn.0043a87e
test ebx, ebx
jne 0x41b696
call fcn.0043a87e
mov ebp, dword [esp + 0x18]
cmp ebp, dword [ebx + 4]
jne 0x41b6a4
call fcn.0043a87e
mov eax, dword [edi + 0x1c]
test eax, eax
mov ecx, dword [ebp + 0x28]
je 0x41b6c2
mov ecx, dword [edi + 0x18]
test ecx, ecx
mov dword [esp + 0x220], ecx
je 0x41b6ea
mov dword [esp + 0x54], eax
jmp 0x41b6ea
cmp dword [edi + 0x20], 0
je 0x41b6ea
mov eax, dword [edi + 0x18]
mov dword [esp + 0x12c], eax
mov dword [ecx + 0x10], eax
cmp dword [edi + 0x18], 0
je 0x41b6ea
mov edx, dword [edi + 0x20]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x41b70e
push 0
push 0
push eax
push esi
call fcn.0043f42f
push esi
push 1
push 0xe4
lea eax, [esp + 0x224]
push eax
jmp 0x41b730
mov eax, dword [edi + 0x20]
test eax, eax
je 0x41b73e
push 0
push 0
push eax
push esi
call fcn.0043f42f
push esi
push 1
push 0xec
lea ecx, [esp + 0x138]
push ecx
call fcn.0043c4b8
push esi
call fcn.0043c1ff
add esp, 0x24
mov edi, dword [edi + 0x18]
test edi, edi
je 0x41b76b
push 0
push 0
push edi
push esi
call fcn.0043f42f
push esi
push 1
lea edx, [esp + 0x50]
push 0xe4
push edx
call fcn.0043c4b8
push esi
call fcn.0043c1ff
add esp, 0x24
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0043a2e3
add esp, 0x2e8
ret 4