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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4248d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040a1c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00406627
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x31], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x40a673
lea eax, [ebp - 0x14c]
mov dword [ebp + 8], eax
push 0x105
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a673
jmp 0x40a7a1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.0040dad0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00405c2c
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00406627
mov edx, dword [ebp - 0x10]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0x10
jb 0x40a6c3
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
jmp 0x40a6c9
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x34], 0xffffffff
je 0x40a74a
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0xffffffff
je 0x40a74a
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], eax
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x2c], 0
je 0x40a7a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x98]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x9c]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx + 0x28]
jne 0x40a7a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040a250
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4