Function at 0x409bd2
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 0x409be0
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
jmp 0x40a078
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 0x409c3e
cmp ebx, 0x24
je 0x409c3e
cmp ebx, 0x25
je 0x409c3e
test byte [ebx + str._________h______________________H], 4
je 0x409e0e
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
cmp byte [ebp - 1], 0x3f
jne 0x409c63
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 0x409d64
cmp byte [ebp - 1], 0x24
jne 0x409cb8
jmp 0x409c85
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 0x409c6b
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x435eb9
lea edi, [ebp - 0x118]
push edi
call fcn.0041ad74
add esp, 0xc
jmp 0x409d64
cmp byte [ebp - 1], 0x25
jne 0x409d0a
jmp 0x409cda
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 0x409cc0
cmp ebx, 0x31
je 0x409cc0
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x435eb6
lea edi, [ebp - 0x118]
push edi
call fcn.0041ad74
add esp, 0xc
jmp 0x409d64
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 0x409d36
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 0x409d1c
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
lea edi, [ebp - 0x10]
push edi
push 0x435eb3
lea edi, [ebp - 0x118]
push edi
call fcn.0041ad74
add esp, 0xc
cmp dword [ebp - 8], 0
jge 0x409d95
mov edi, dword [ebp + 8]
cmp byte [edi], 0x7e
jne 0x409d81
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], edi
add dword [ebp + 8], 1
jmp 0x40a078
push 1
movsx ebx, byte [ebp - 0x10]
push ebx
call fcn.00407581
add esp, 8
jmp 0x40a078
cmp dword [ebp - 0x11c], 0
je 0x409dc7
cmp dword [ebp - 0x11c], 1
jne 0x40a078
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x11c], 2
jmp 0x40a078
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jge 0x409dd6
mov ebx, 1
jmp 0x409ddb
mov ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
push 1
movsx ebx, byte [ebp - 8]
push ebx
call fcn.00407581
add esp, 8
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jne 0x409df7
jmp 0x409e02
mov edi, dword [ebp - 8]
add edi, dword [ebp - 0x14]
mov dword [ebp - 8], edi
jmp 0x409dde
mov dword [ebp - 8], 0xffffffff
jmp 0x40a078
movsx ebx, byte [ebp - 1]
cmp ebx, 0x28
je 0x409e1c
cmp ebx, 0x29
jne 0x409e77
cmp byte [ebp - 1], 0x28
jne 0x409e51
mov dword [ebp - 0x11c], 1
jmp 0x40a078
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00409b90
add esp, 8
mov edi, eax
push 1
mov ebx, edi
movsx ebx, bl
push ebx
call fcn.00407581
add esp, 8
mov edi, dword [ebp - 0x10]
mov esi, edi
sub esi, 1
mov dword [ebp - 0x10], esi
cmp edi, 0
jne 0x409e31
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0xffffffff
jmp 0x40a078
movsx ebx, byte [ebp - 1]
cmp ebx, 0x22
je 0x409e85
cmp ebx, 0x27
jne 0x409ec8
jmp 0x409ea0
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.00407581
add esp, 8
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x409eb3
movsx edx, byte [ebp - 1]
cmp ebx, edx
jne 0x409e87
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40a078
add dword [ebp + 8], 1
jmp 0x40a078
cmp byte [ebp - 1], 0x3c
jne 0x409ffe
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], edi
jmp 0x409ef7
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 0x409f07
cmp ebx, 0x3e
jne 0x409edd
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x409f13
add dword [ebp + 8], 1
mov edi, dword [ebp - 0xc]
mov byte [edi], 0
push 0x435eb0
lea edi, [ebp - 0x118]
push edi
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x124], eax
cmp eax, 0
je 0x40a078
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 0x409fee
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 0x409fee
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 0x409fd0
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
mov dword [ebp - 0x120], 0
jmp 0x409fee
mov edi, dword [ebp - 0x128]
mov esi, dword [ebp - 0x120]
mov byte [esi + edi], 0
push dword [ebp - 0x120]
call fcn.00409bd2
add esp, 4
push dword [ebp - 0x124]
call sub.CRTDLL.DLL_fclose
add esp, 4
jmp 0x40a078
cmp byte [ebp - 1], 0x2f
jne 0x40a028
jmp 0x40a00a
add dword [ebp + 8], 1
mov edi, dword [ebp + 8]
movsx ebx, byte [edi]
cmp ebx, 0
je 0x40a01a
cmp ebx, 0xa
jne 0x40a006
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40a078
add dword [ebp + 8], 1
jmp 0x40a078
cmp byte [ebp - 1], 0x23
jne 0x40a078
push 1
movsx ebx, byte [ebp - 1]
push ebx
call fcn.00407581
add esp, 8
jmp 0x40a05e
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.00407581
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x40a03f
cmp byte [ebp - 1], 0xa
je 0x40a078
push 1
push 0xa
call fcn.00407581
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x409c0d
cmp dword [ebp - 0x120], 0
je 0x40a098
push dword [ebp - 0x120]
call sub.KERNEL32.dll_GlobalFree
pop edi
pop esi
pop ebx
leave
ret