Function at 0x43801c
Capabilities:
Read file on windows

Disassembly:
push 0x70
mov eax, 0x448240
call fcn.00445ec9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x7c], eax
call fcn.0040fa30
push str._kti
lea eax, [ebp - 0x50]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004370a1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00422610
add esp, 0xc
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00414130
lea ecx, [ebp - 0x54]
call fcn.0040fa10
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0040fa10
lea ecx, [ebp - 0x58]
call fcn.00433de0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040f5f0
lea esi, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00437fe2
test eax, eax
je 0x4381e8
xor eax, eax
mov byte [ebp - 0x4c], bl
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp - 0x74], ebx
mov dword [ebp - 0x54], ebx
je 0x4381ce
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x38
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4381e8
cmp dword [ebp - 0x54], 0x38
jne 0x4381e8
lea eax, [ebp - 0x4c]
push str.kdown_
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4381e8
cmp dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x5c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov dword [ebp - 0x50], ebx
jle 0x4381ba
push 0x28
call fcn.0043a416
cmp eax, ebx
pop ecx
je 0x43816a
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov esi, eax
jmp 0x43816c
xor esi, esi
cmp dword [ebp - 0x74], ebx
mov dword [ebp - 0x5c], esi
je 0x438185
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x28
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x7c]
lea edi, [ebp - 0x5c]
mov dword [esi + 0x20], ebx
call fcn.00437c05
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00438ca7
add esp, 0x1c
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x1c]
jl 0x438143
cmp dword [ebp - 0x74], ebx
je 0x4381cb
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], ebx
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x64]
call fcn.0040fa10
lea ecx, [ebp - 0x58]
call fcn.0040fa10
mov eax, ebx
call fcn.00445f13
ret 0xc
cmp dword [ebp - 0x74], ebx
je 0x4381ce
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], ebx
jmp 0x4381ce