Function at 0x401f09
Capabilities:
Read file on windows

Disassembly:
push 0x64
mov eax, 0x45303d
call fcn.00442764
lea ecx, [ebp - 0x34]
call fcn.00401e56
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x401f2e
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x60], edi
push ebx
cmp edi, ebx
je 0x402180
push ebx
push dword [0x46d3b8]
mov dword [ebp - 0x54], ebx
push edi
mov dword [ebp - 0x64], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push edi
call esi
cmp dword [ebp - 0x54], 4
je 0x401fa5
xor edi, edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.0040146e
mov eax, edi
jmp 0x402193
cmp dword [ebp - 0x64], 0x41474745
jne 0x401fb9
xor edi, edi
mov dword [0x46d3bc], ebx
inc edi
jmp 0x401f83
cmp dword [ebp - 0x64], 0x245b90f2
jne 0x401f81
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x6c]
push eax
push edi
mov dword [ebp - 0x6c], ebx
call esi
cmp dword [ebp - 0x54], 4
jne 0x401f81
push ebx
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x70]
push eax
push edi
mov dword [ebp - 0x70], ebx
call esi
cmp dword [ebp - 0x54], 2
jne 0x401f81
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push edi
call esi
cmp dword [ebp - 0x54], 4
jne 0x401f81
jmp 0x40200d
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x402144
movzx ecx, ax
shr eax, 0x10
movzx edi, ax
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x5c], ecx
call fcn.0043de63
pop ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x401f81
lea eax, [edi + 2]
push eax
push ebx
push dword [ebp - 0x58]
call fcn.0043e4b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x54], edi
jne 0x40216d
xor edi, edi
inc edi
mov eax, edi
cmp ax, word [ebp - 0x5c]
jne 0x402071
mov dword [0x46d420], edi
push 2
pop eax
cmp ax, word [ebp - 0x5c]
jne 0x402080
mov dword [0x46d424], edi
push 3
pop eax
cmp ax, word [ebp - 0x5c]
jne 0x4020b4
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
call fcn.00402ae6
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x46d400
mov byte [ebp - 4], 1
call fcn.004084d8
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00402d13
push 4
pop eax
cmp ax, word [ebp - 0x5c]
jne 0x4020e8
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
call fcn.00402ae6
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x46d3c0
mov byte [ebp - 4], 2
call fcn.004084d8
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00402d13
push 5
pop eax
cmp ax, word [ebp - 0x5c]
jne 0x40211c
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
call fcn.00402ae6
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x46d3e0
mov byte [ebp - 4], 3
call fcn.004084d8
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00402d13
push dword [ebp - 0x58]
call fcn.0043e52a
pop ecx
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x54], 4
je 0x40200a
jmp 0x401f81
mov eax, dword [ebp - 0x6c]
add eax, 8
push edi
mov dword [0x46d3bc], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.0040146e
xor eax, eax
inc eax
jmp 0x402193
push dword [ebp - 0x58]
call fcn.0043e52a
pop ecx
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.0040146e
xor eax, eax
call fcn.004427e7
ret