Function at 0x409c1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov ecx, 0x4a
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x409c2c
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
jmp 0x40a0c4
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
mov bl, byte [edi]
mov byte [ebp - 1], bl
movsx ebx, byte [ebp - 1]
cmp ebx, 0x3f
je 0x409c8a
cmp ebx, 0x24
je 0x409c8a
cmp ebx, 0x25
je 0x409c8a
test byte [ebx + str._________h______________________H], 4
je 0x409e5a
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
cmp byte [ebp - 1], 0x3f
jne 0x409caf
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
movsx ebx, byte [edi]
mov dword [ebp - 0x10], ebx
jmp 0x409db0
cmp byte [ebp - 1], 0x24
jne 0x409d04
jmp 0x409cd1
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, 1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov ebx, esi
add ebx, 1
mov dword [ebp + 8], ebx
mov bl, byte [esi]
mov byte [edi], bl
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
test byte [ebx + str._________h______________________H], 0x84
jne 0x409cb7
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x43eed1
lea edi, [ebp - 0x118]
push edi
call fcn.0041aed8
add esp, 0xc
jmp 0x409db0
cmp byte [ebp - 1], 0x25
jne 0x409d56
jmp 0x409d26
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, 1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov ebx, esi
add ebx, 1
mov dword [ebp + 8], ebx
mov bl, byte [esi]
mov byte [edi], bl
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0x30
je 0x409d0c
cmp ebx, 0x31
je 0x409d0c
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x43eece
lea edi, [ebp - 0x118]
push edi
call fcn.0041aed8
add esp, 0xc
jmp 0x409db0
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, 1
mov dword [ebp - 0xc], esi
mov bl, byte [ebp - 1]
mov byte [edi], bl
jmp 0x409d82
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, 1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov ebx, esi
add ebx, 1
mov dword [ebp + 8], ebx
mov bl, byte [esi]
mov byte [edi], bl
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
test byte [ebx + str._________h______________________H], 4
jne 0x409d68
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x43eecb
lea edi, [ebp - 0x118]
push edi
call fcn.0041aed8
add esp, 0xc
cmp dword [ebp - 8], 0
jge 0x409de1
mov edi, dword [ebp + 8]
cmp byte [edi], 0x7e
jne 0x409dcd
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], edi
add dword [ebp + 8], 1
jmp 0x40a0c4
push 1
movsx ebx, byte [ebp - 0x10]
push ebx
call fcn.00407582
add esp, 8
jmp 0x40a0c4
cmp dword [ebp - 0x11c], 0
je 0x409e13
cmp dword [ebp - 0x11c], 1
jne 0x40a0c4
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x11c], 2
jmp 0x40a0c4
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jge 0x409e22
mov ebx, 1
jmp 0x409e27
mov ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
push 1
movsx ebx, byte [ebp - 8]
push ebx
call fcn.00407582
add esp, 8
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jne 0x409e43
jmp 0x409e4e
mov edi, dword [ebp - 8]
add edi, dword [ebp - 0x14]
mov dword [ebp - 8], edi
jmp 0x409e2a
mov dword [ebp - 8], 0xffffffff
jmp 0x40a0c4
movsx ebx, byte [ebp - 1]
cmp ebx, 0x28
je 0x409e68
cmp ebx, 0x29
jne 0x409ec3
cmp byte [ebp - 1], 0x28
jne 0x409e9d
mov dword [ebp - 0x11c], 1
jmp 0x40a0c4
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00409bdc
add esp, 8
mov edi, eax
push 1
mov ebx, edi
movsx ebx, bl
push ebx
call fcn.00407582
add esp, 8
mov edi, dword [ebp - 0x10]
mov esi, edi
sub esi, 1
mov dword [ebp - 0x10], esi
cmp edi, 0
jne 0x409e7d
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0xffffffff
jmp 0x40a0c4
movsx ebx, byte [ebp - 1]
cmp ebx, 0x22
je 0x409ed1
cmp ebx, 0x27
jne 0x409f14
jmp 0x409eec
push 1
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
movsx ebx, byte [edi]
push ebx
call fcn.00407582
add esp, 8
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x409eff
movsx edx, byte [ebp - 1]
cmp ebx, edx
jne 0x409ed3
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40a0c4
add dword [ebp + 8], 1
jmp 0x40a0c4
cmp byte [ebp - 1], 0x3c
jne 0x40a04a
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
jmp 0x409f43
mov edi, dword [ebp - 0xc]
mov esi, edi
add esi, 1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov ebx, esi
add ebx, 1
mov dword [ebp + 8], ebx
mov bl, byte [esi]
mov byte [edi], bl
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x409f53
cmp ebx, 0x3e
jne 0x409f29
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x409f5f
add dword [ebp + 8], 1
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
push 0x43eec8
lea edi, [ebp - 0x118]
push edi
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x124], eax
cmp eax, 0
je 0x40a0c4
push 2
push 0
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_fseek
add esp, 0xc
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_ftell
add esp, 4
mov dword [ebp - 0x128], eax
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_rewind
add esp, 4
cmp dword [ebp - 0x128], 0
je 0x40a03a
mov edi, dword [ebp - 0x128]
add edi, 1
push edi
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x120], eax
cmp eax, 0
je 0x40a03a
push dword [ebp - 0x124]
push dword [ebp - 0x128]
push 1
push dword [ebp - 0x120]
call sub.CRTDLL.DLL_fread
add esp, 0x10
cmp eax, dword [ebp - 0x128]
je 0x40a01c
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
mov dword [ebp - 0x120], 0
jmp 0x40a03a
mov edi, dword [ebp - 0x128]
mov esi, dword [ebp - 0x120]
mov byte [esi + edi], 0
push dword [ebp - 0x120]
call fcn.00409c1e
add esp, 4
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_fclose
add esp, 4
jmp 0x40a0c4
cmp byte [ebp - 1], 0x2f
jne 0x40a074
jmp 0x40a056
add dword [ebp + 8], 1
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x40a066
cmp ebx, 0xa
jne 0x40a052
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40a0c4
add dword [ebp + 8], 1
jmp 0x40a0c4
cmp byte [ebp - 1], 0x23
jne 0x40a0c4
push 1
movsx ebx, byte [ebp - 1]
push ebx
call fcn.00407582
add esp, 8
jmp 0x40a0aa
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 1
mov dword [ebp + 8], esi
mov bl, byte [edi]
mov byte [ebp - 1], bl
push 1
movsx ebx, byte [ebp - 1]
push ebx
call fcn.00407582
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x40a08b
cmp byte [ebp - 1], 0xa
je 0x40a0c4
push 1
push 0xa
call fcn.00407582
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x409c59
cmp dword [ebp - 0x120], 0
je 0x40a0e4
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
pop edi
pop esi
pop ebx
leave
ret