Function at 0x42bb20
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534da8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x40], 0
push 0
push eax
call fcn.0044edd0
add esp, 8
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42bc8e
call fcn.0042ba40
mov esi, eax
test esi, esi
jns 0x42bc93
push str.SfxErrorReadArchive
lea ecx, [ebp - 0x14]
call fcn.00422310
push esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push str.___d_
push eax
call fcn.0042c790
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x140]
call fcn.0042cf10
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.0042a480
mov edx, dword [ebp - 0x24]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
add esp, 0xc
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42bc17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bc37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bc57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x42bc78
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
xor esi, esi
push edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
cmp ecx, 0xffffffff
jne 0x42bccb
call fcn.0042ba40
test eax, eax
js 0x42bce0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov esi, ecx
mov dword [ebp - 0x38], eax
cmp ecx, 0x100000
jbe 0x42bce0
mov esi, 0x100000
push 4
push 2
push 0
push 0
push esi
push edi
lea ecx, [ebp - 0x68]
call fcn.0042ddf0
mov esi, eax
test esi, esi
jns 0x42bdc9
push str.SfxErrorReadArchive
lea ecx, [ebp - 0x14]
call fcn.00422310
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push str.___d_
push eax
call fcn.0042c790
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x140]
call fcn.0042cf10
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
mov byte [ebp - 4], 8
call fcn.0042a480
mov edx, dword [ebp - 0x28]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 7
add esp, 0xc
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42bd6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bd8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bdad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x68]
call fcn.00428b70
test edi, edi
je 0x42bc57
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42bc57
mov eax, dword [ebp - 0x68]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x42be20
mov ebx, dword [ebp + 8]
mov ecx, ebx
push str.File_does_not_have_EXE_format.
call fcn.00422310
lea ecx, [ebp - 0x68]
call fcn.00428b70
test edi, edi
je 0x42bdf8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bc78
mov ecx, dword [esi]
push esi
jmp 0x42bc73
push dword [eax + 0x3c]
push eax
call fcn.00425120
add esp, 8
cmp dword [eax], 0x4550
je 0x42be7e
mov ebx, dword [ebp + 8]
mov ecx, ebx
push str.Invalid_PE_signature.
call fcn.00422310
lea ecx, [ebp - 0x68]
call fcn.00428b70
test edi, edi
je 0x42be56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42bc78
mov ecx, dword [esi]
push esi
jmp 0x42bc73
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x42be94
mov esi, dword [eax + 0x9c]
add esi, ecx
xor ebx, ebx
jmp 0x42bee5
lea ecx, [ebp - 0x14]
call fcn.004223d0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], 0
push eax
push str._MGX_VERIFY
push dword [ebp - 0x10]
call fcn.00458da0
add esp, 0x10
test eax, eax
js 0x42bfee
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 8
jne 0x42bfee
mov esi, dword [eax]
lea ecx, [ebp - 0x14]
mov ebx, dword [eax + 4]
mov byte [ebp - 4], 5
call fcn.004225e0
push dword [ebp - 0x10]
call fcn.0042c720
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
mov eax, edx
mov dword [ebp - 0x28], eax
cmp esi, ecx
jne 0x42bf14
cmp ebx, eax
jne 0x42bf14
mov ecx, dword [ebp + 8]
push 0x5466b8
call fcn.00422310
jmp 0x42c003
push str.ErrorSize
lea ecx, [ebp - 0x1c]
call fcn.00422310
push str.SfxErrorBadArchive
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.00422310
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [edi + 0x140]
call fcn.0042cf10
push dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
push dword [ebp - 0x14]
push ebx
push esi
push dword [eax]
lea eax, [ebp - 0x34]
push eax
call fcn.0042c790
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x140]
call fcn.0042cf10
push 0x547c60
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00422960
push esi
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push eax
call fcn.0042a480
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.004225e0
lea ecx, [ebp - 0x30]
call fcn.004225e0
lea ecx, [ebp - 0x34]
call fcn.004225e0
lea ecx, [ebp - 0x38]
call fcn.004225e0
lea ecx, [ebp - 0x18]
call fcn.004225e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.004225e0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.004222e0
lea ecx, [ebp - 0x20]
call fcn.004225e0
jmp 0x42c003
mov ecx, dword [ebp + 8]
push str.Resource__MGX_VERIFY_is_not_found.
call fcn.00422310
lea ecx, [ebp - 0x14]
call fcn.004225e0
lea ecx, [ebp - 0x68]
call fcn.00428b70
lea ecx, [ebp - 0x48]
call fcn.00429350
lea ecx, [ebp - 0x10]
call fcn.004225e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4