Function at 0x402d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4b3480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp + 0x10]
push eax
push str.GL_AS
push ecx
lea eax, [ebp - 0x1ec]
push str._s_s_s
push eax
call fcn.00401540
lea eax, [ebp - 0x1ec]
push eax
call fcn.004026a0
mov esi, dword [ebp + 0x14]
add esp, 0x18
mov ecx, esi
xor edx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402da0
sub ecx, edi
je 0x402df5
nop dword [eax + eax]
cmp dx, 0xb
jg 0x402df5
movsx eax, dx
mov cl, byte [eax + esi]
cmp cl, 0x2e
je 0x402de2
mov byte [ebp + eax - 0xf8], cl
inc edx
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402dd0
sub ecx, edi
movsx eax, dx
cmp eax, ecx
jb 0x402db0
jmp 0x402df5
cmp eax, 0xf1
jae 0x40304c
mov byte [ebp + eax - 0xf8], 0
movsx eax, dx
cmp eax, 0xf1
jae 0x40304c
push str..TXT
mov byte [ebp + eax - 0xf8], 0
lea eax, [ebp - 0xf8]
push eax
push 0x4964d0
push dword [ebp - 0x1f0]
push str._s_s_s_s
push ebx
call fcn.00401540
lea eax, [ebp - 0x1ec]
push 0x495470
push eax
call fcn.00457e2c
push 0x4964d4
push ebx
mov esi, eax
call fcn.00457e2c
add esp, 0x28
mov edi, eax
test esi, esi
je 0x403039
test edi, edi
je 0x403039
push esi
call fcn.00458231
add esp, 4
test eax, eax
jne 0x403014
push esi
push 1
lea eax, [ebp - 0x1fc]
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x204]
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x20c]
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x214]
push 8
push eax
call fcn.004580de
add esp, 0x40
lea eax, [ebp - 0x21c]
push esi
push 1
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x224]
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x22c]
push 8
push eax
call fcn.004580de
push esi
push 1
lea eax, [ebp - 0x234]
push 8
push eax
call fcn.004580de
add esp, 0x40
lea eax, [ebp - 0x23c]
push esi
push 1
push 8
push eax
call fcn.004580de
movsd xmm0, qword [ebp - 0x1fc]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x204]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x20c]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x214]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
add esp, 8
movsd xmm0, qword [ebp - 0x21c]
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x224]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x22c]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x234]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf
push edi
call fcn.004070c0
movsd xmm0, qword [ebp - 0x23c]
add esp, 8
movsd qword [esp], xmm0
push str._5.2lf_n
push edi
call fcn.004070c0
push esi
call fcn.00458231
add esp, 0x14
test eax, eax
je 0x402e71
push edi
call fcn.00457b3e
push esi
call fcn.00457b3e
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431856
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431856
mov esp, ebp
pop ebp
ret
call fcn.00431986
int3