Function at 0x409475
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 0x409483
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
jmp 0x40991b
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 0x4094e1
cmp ebx, 0x24
je 0x4094e1
cmp ebx, 0x25
je 0x4094e1
test byte [ebx + str._________h______________________H], 4
je 0x4096b1
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
cmp byte [ebp - 1], 0x3f
jne 0x409506
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 0x409607
cmp byte [ebp - 1], 0x24
jne 0x40955b
jmp 0x409528
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 0x40950e
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x45e841
lea edi, [ebp - 0x118]
push edi
call fcn.0041acd4
add esp, 0xc
jmp 0x409607
cmp byte [ebp - 1], 0x25
jne 0x4095ad
jmp 0x40957d
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 0x409563
cmp ebx, 0x31
je 0x409563
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x45e83e
lea edi, [ebp - 0x118]
push edi
call fcn.0041acd4
add esp, 0xc
jmp 0x409607
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 0x4095d9
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 0x4095bf
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x45e83b
lea edi, [ebp - 0x118]
push edi
call fcn.0041acd4
add esp, 0xc
cmp dword [ebp - 8], 0
jge 0x409638
mov edi, dword [ebp + 8]
cmp byte [edi], 0x7e
jne 0x409624
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], edi
add dword [ebp + 8], 1
jmp 0x40991b
push 1
movsx ebx, byte [ebp - 0x10]
push ebx
call fcn.00406e99
add esp, 8
jmp 0x40991b
cmp dword [ebp - 0x11c], 0
je 0x40966a
cmp dword [ebp - 0x11c], 1
jne 0x40991b
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x11c], 2
jmp 0x40991b
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jge 0x409679
mov ebx, 1
jmp 0x40967e
mov ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
push 1
movsx ebx, byte [ebp - 8]
push ebx
call fcn.00406e99
add esp, 8
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jne 0x40969a
jmp 0x4096a5
mov edi, dword [ebp - 8]
add edi, dword [ebp - 0x14]
mov dword [ebp - 8], edi
jmp 0x409681
mov dword [ebp - 8], 0xffffffff
jmp 0x40991b
movsx ebx, byte [ebp - 1]
cmp ebx, 0x28
je 0x4096bf
cmp ebx, 0x29
jne 0x40971a
cmp byte [ebp - 1], 0x28
jne 0x4096f4
mov dword [ebp - 0x11c], 1
jmp 0x40991b
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00409433
add esp, 8
mov edi, eax
push 1
mov ebx, edi
movsx ebx, bl
push ebx
call fcn.00406e99
add esp, 8
mov edi, dword [ebp - 0x10]
mov esi, edi
sub esi, 1
mov dword [ebp - 0x10], esi
cmp edi, 0
jne 0x4096d4
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0xffffffff
jmp 0x40991b
movsx ebx, byte [ebp - 1]
cmp ebx, 0x22
je 0x409728
cmp ebx, 0x27
jne 0x40976b
jmp 0x409743
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.00406e99
add esp, 8
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x409756
movsx edx, byte [ebp - 1]
cmp ebx, edx
jne 0x40972a
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40991b
add dword [ebp + 8], 1
jmp 0x40991b
cmp byte [ebp - 1], 0x3c
jne 0x4098a1
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
jmp 0x40979a
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 0x4097aa
cmp ebx, 0x3e
jne 0x409780
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x4097b6
add dword [ebp + 8], 1
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
push 0x45e838
lea edi, [ebp - 0x118]
push edi
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x124], eax
cmp eax, 0
je 0x40991b
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 0x409891
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 0x409891
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 0x409873
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
mov dword [ebp - 0x120], 0
jmp 0x409891
mov edi, dword [ebp - 0x128]
mov esi, dword [ebp - 0x120]
mov byte [esi + edi], 0
push dword [ebp - 0x120]
call fcn.00409475
add esp, 4
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_fclose
add esp, 4
jmp 0x40991b
cmp byte [ebp - 1], 0x2f
jne 0x4098cb
jmp 0x4098ad
add dword [ebp + 8], 1
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x4098bd
cmp ebx, 0xa
jne 0x4098a9
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40991b
add dword [ebp + 8], 1
jmp 0x40991b
cmp byte [ebp - 1], 0x23
jne 0x40991b
push 1
movsx ebx, byte [ebp - 1]
push ebx
call fcn.00406e99
add esp, 8
jmp 0x409901
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.00406e99
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x4098e2
cmp byte [ebp - 1], 0xa
je 0x40991b
push 1
push 0xa
call fcn.00406e99
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x4094b0
cmp dword [ebp - 0x120], 0
je 0x40993b
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
pop edi
pop esi
pop ebx
leave
ret