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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x444], esi
mov edi, ecx
mov dword [ebp - 0x440], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0x448], edi
mov byte [edi], 0
xor ebx, ebx
mov dword [ebp - 4], 0
push ebx
push 0x44d414
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
call fcn.004053b0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x43c], eax
cmp eax, 0xffffffff
jne 0x403ace
cmp dword [0x45b264], ebx
jne 0x403abc
push 1
call fcn.0042041b
add esp, 4
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x403ab5
push 0x45b248
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x42c]
jmp 0x403ab7
xor eax, eax
mov dword [0x45b264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload__s_createfileA_error__d
jmp 0x403b79
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
jne 0x403b4f
cmp dword [0x45b264], 0
jne 0x403b21
push 1
call fcn.0042041b
add esp, 4
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x403b1a
push 0x45b248
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x42c]
jmp 0x403b1c
xor eax, eax
mov dword [0x45b264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload___s_CreateFileMappingA_error__d
call fcn.00408450
add esp, 0xc
mov ecx, edi
push 0
push 0x44d414
call fcn.004053b0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403cbb
push 0
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x403b94
call fcn.004086b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload____s
call fcn.00408450
add esp, 0xc
mov ecx, edi
push 0
push 0x44d414
call fcn.004053b0
jmp 0x403cad
push eax
push 0
push 0
push 4
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x403bdc
call fcn.004086b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uncompressandload___s_MapViewOfFile_error__d
call fcn.00408450
add esp, 0xc
mov ecx, edi
push 0x44d414
call fcn.00405370
jmp 0x403cad
mov eax, dword [ebp - 0x42c]
lea esi, [eax + eax*4]
push esi
call fcn.0041f2f4
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
mov dword [ebp - 0x434], esi
call fcn.00426230
mov esi, dword [ebp - 0x42c]
add esp, 0xc
lea edx, [ebp - 0x434]
push esi
push dword [ebp - 0x438]
mov ecx, ebx
call fcn.0040d030
add esp, 8
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x403c5c
call fcn.004086b0
push esi
push dword [ebp - 0x438]
push dword [ebp - 0x434]
push ebx
push dword [ebp - 0x42c]
push dword [ebp - 0x444]
push str._s_uncompressandload
call fcn.00408450
add esp, 0x1c
push 0x44d414
jmp 0x403c9a
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00426230
add esp, 0xc
test ebx, ebx
je 0x403c93
push dword [ebp - 0x434]
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00425be0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00405370
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x430]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x43c]
cmp eax, 0xffffffff
je 0x403cc9
push eax
call esi
test ebx, ebx
je 0x403cd6
push ebx
call fcn.0041ff01
add esp, 4
cmp dword [ebp - 0x414], 0x10
jb 0x403ced
push dword [ebp - 0x428]
call fcn.0041ff30
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e77a
mov esp, ebp
pop ebp
ret