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

Disassembly:
push 0xffffffffffffffff
push 0x459706
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x472cf0]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472cf0]
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 0x41cd74
lea eax, [esp + 0x13c]
push 0x5c
push eax
call fcn.0043f550
lea ebp, [edi + 0x1a8]
xor ebx, ebx
add esp, 8
cmp ebp, ebx
mov esi, eax
jne 0x41cda5
call fcn.0043a87e
cmp esi, ebx
je 0x41d04f
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 0x41cdd0
sub eax, edx
push eax
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401f40
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov dword [esp + 0x1d0], ebx
call fcn.0041af00
mov esi, dword [eax]
test esi, esi
mov ecx, dword [ebp + 4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
je 0x41ce19
cmp esi, ebp
je 0x41ce1e
call fcn.0043a87e
cmp ebx, dword [esp + 0x1c]
jne 0x41cf13
lea edx, [edi + 0x90]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ce33
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00401f40
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ce53
sub eax, edx
push eax
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x44]
call fcn.00402140
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x41ce7f
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.0041cbd0
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 0x41cea6
sub eax, edx
push eax
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x28]
call fcn.00401f40
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
mov byte [esp + 0x1d0], 1
call fcn.0041af00
cmp dword [esp + 0x38], 0x10
mov esi, dword [eax]
mov ebx, dword [eax + 4]
jb 0x41cef5
mov eax, dword [esp + 0x24]
push eax
call fcn.0041d9db
add esp, 4
test esi, esi
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
je 0x41cf04
cmp esi, ebp
je 0x41cf09
call fcn.0043a87e
cmp ebx, dword [esp + 0x1c]
jne 0x41cf13
xor esi, esi
jmp 0x41cf29
test esi, esi
jne 0x41cf1c
call fcn.0043a87e
cmp ebx, dword [esi + 4]
jne 0x41cf26
call fcn.0043a87e
mov esi, dword [ebx + 0x28]
cmp dword [esp + 0x54], 0x10
jb 0x41cf3d
mov edx, dword [esp + 0x40]
push edx
call fcn.0041d9db
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 0x41d04f
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.0041a610
mov dword [ebx + 0x20], eax
mov ebp, dword [esi + 0x10]
test ebp, ebp
mov ebx, dword [esp + 0x1d4]
je 0x41cfed
push 0xe4
lea edx, [esp + 0x5c]
push 0
push edx
call fcn.0043a0d0
mov eax, dword [edi + 0x5c]
push 0
push 0
push ebp
push eax
call fcn.0043f42f
mov ecx, dword [edi + 0x5c]
push ecx
push 1
lea edx, [esp + 0x7c]
push 0xe4
push edx
call fcn.0043f37b
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.0043f42f
mov ebp, dword [edi + 0x5c]
push ebp
push 1
lea edx, [esp + 0x9c]
push 0xe4
push edx
call fcn.0043c4b8
add esp, 0x4c
push ebp
call fcn.0043c1ff
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.0043f42f
mov ebp, dword [edi + 0x5c]
push ebp
push 1
push 0xec
push esi
call fcn.0043c4b8
push ebp
call fcn.0043c1ff
mov eax, dword [edi + 0x5c]
push 0
push 0
push ebx
push eax
call fcn.0043f42f
mov edi, dword [edi + 0x5c]
mov ecx, dword [esp + 0x48]
push edi
push 1
push 0xe4
push ecx
call fcn.0043c4b8
add esp, 0x44
push edi
call fcn.0043c1ff
add esp, 4
xor eax, eax
jmp 0x41d052
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.0043a2e3
add esp, 0x1b8
ret 8