Function at 0x401c23
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x411280]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push 0x100
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x14], eax
call dword [0x40e014]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c5b
sub eax, edx
lea eax, [esp + eax + 0x14]
lea edx, [esp + 0x14]
cmp eax, edx
jbe 0x401c84
lea ecx, [ecx]
cmp byte [eax], 0x2e
je 0x401c84
mov byte [eax], 0
dec eax
lea ecx, [esp + 0x14]
cmp eax, ecx
ja 0x401c73
mov byte [eax], 0
lea eax, [esp + 0x14]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401c93
mov edx, dword [0x40e228]
mov ecx, dword [0x40e22c]
mov dword [eax], edx
mov dx, word [0x40e230]
mov dword [eax + 4], ecx
mov cl, byte [0x40e232]
push esi
mov word [eax + 8], dx
lea edx, [esp + 0x18]
push 0
push edx
mov byte [eax + 0xa], cl
call fcn.0040d0d4
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x401d0b
lea eax, [esp + 0x18]
push eax
push 0x40e218
call fcn.00402024
add eax, 0x40
push eax
call fcn.00401f08
add esp, 0xc
lea eax, [esi + 3]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00402625
add esp, 0x218
ret
push edi
push 0x100
lea ecx, [esp + 0x120]
push ecx
push esi
call fcn.0040c8b8
push esi
lea edi, [esp + eax + 0x12c]
call fcn.0040a7d4
lea eax, [esp + 0x12c]
add esp, 0x10
dec eax
inc eax
cmp eax, edi
jae 0x401d4c
mov cl, byte [eax]
test cl, cl
je 0x401d4c
cmp cl, 0xa
je 0x401d4c
cmp cl, 0xd
jne 0x401d37
push 2
lea edx, [esp + 0x120]
push 0x40e214
push edx
mov byte [eax], 0
call fcn.004027b7
add esp, 0xc
test eax, eax
je 0x401d9c
mov eax, dword [0x40e204]
mov ecx, dword [0x40e208]
mov edx, dword [0x40e20c]
mov dword [esp + 0x11c], eax
mov al, byte [0x40e210]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov byte [esp + 0x128], al
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x122]
push edx
call fcn.00401933
mov esi, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004017e3
mov edi, eax
add esp, 0x10
mov dword [esp + 0xc], edi
test edi, edi
jne 0x401dd7
push esi
push 0x40e1e0
jmp 0x401e8c
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x22c]
lea eax, [ebx + ebp]
mov dword [esp + 0x1c], eax
inc eax
push 4
push eax
call fcn.004021d9
mov esi, eax
push edi
mov dword [esp + 0x1c], esi
call fcn.00401743
mov dword [esi], eax
mov edi, 1
add esp, 0xc
add esi, 4
cmp ebx, edi
jle 0x401e2d
mov edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00401743
mov dword [esi], eax
inc edi
add esp, 4
add esi, 4
cmp edi, ebx
jl 0x401e13
lea eax, [esp + 0x24]
push eax
call fcn.00401743
mov dword [esi], eax
mov edi, 1
add esp, 4
add esi, 4
cmp ebp, edi
jle 0x401e62
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00401743
mov dword [esi], eax
inc edi
add esp, 4
add esi, 4
cmp edi, ebp
jl 0x401e48
cmp dword [esp + 0x234], 0
pop ebp
mov dword [esi], 0
pop ebx
je 0x401eb9
mov eax, dword [esp + 8]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.0040c2a7
add esp, 8
push esi
push 0x40e1cc
call fcn.00402024
add eax, 0x40
push eax
call fcn.00401f08
add esp, 0xc
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00402625
add esp, 0x218
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00401b53
push eax
call fcn.00401a93
mov ecx, dword [esp + 0x22c]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.00402625
add esp, 0x218
ret