Function at 0x406216
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
push edi
and dword [ebp - 0x10], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x134], 0x40dbdc
mov esi, 0x40dbe0
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
and dword [ebp - 0x18], 0
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x406277
jmp 0x406448
mov dword [0x413d6c], 1
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4062c4
jmp 0x406448
call fcn.00406175
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4062dc
mov dword [ebp - 0x134], 0x40dbec
cmp dword [0x4131dc], 5
jne 0x4062f6
cmp dword [0x4131e0], 2
jne 0x4062f6
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x406303
mov eax, dword [0x412fa8]
add eax, 0x1040
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
test eax, eax
je 0x406424
and dword [ebp - 0x13c], 0
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x20]
add eax, 0x28
mov dword [ebp - 0x138], eax
jmp 0x40633c
mov eax, dword [ebp - 0x138]
add eax, 0x18
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
cmp dword [eax + 4], 0
jbe 0x40636d
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x138]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40636b
mov dword [ebp - 0x13c], 1
jmp 0x40636d
jmp 0x40632d
cmp dword [ebp - 0x13c], 1
jne 0x40640c
push 0x104
push 0
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x134]
call fcn.00402415
push eax
push 0x412fc0
push 0x40dbf0
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
mov eax, dword [ebp - 0x138]
push dword [eax + 4]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
push ecx
lea eax, [ebp - 0x130]
push eax
call fcn.004013b3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x130]
push eax
call fcn.004060e5
cmp dword [0x413d70], 0
jne 0x4063fb
mov dword [0x413d70], 1
mov eax, dword [0x412fa8]
push dword [eax + 0x1008]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x10], eax
jmp 0x406303
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret 4