Function at 0x458da0
Capabilities:
Extract resource via kernel32 functions
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
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, dword [ebp + 0x10]
test ebx, ebx
je 0x458ddd
push 0
push 0x546a14
mov ecx, ebx
call fcn.0045a6d0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x458dea
mov dword [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
push 3
push 1
push SysReAllocString
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.0045a600
mov esi, eax
add esp, 0x14
test esi, esi
js 0x458f8b
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 0xffffffff
jne 0x458e55
call fcn.0042ba40
test eax, eax
js 0x458e70
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov esi, ecx
mov dword [ebp - 0x10], eax
test eax, eax
jb 0x458e70
ja 0x458e6b
cmp ecx, 0x6400000
jbe 0x458e70
mov esi, 0x6400000
push 4
push 2
push 0
push 0
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0042ddf0
mov edi, dword [ebp - 0x48]
mov esi, eax
test esi, esi
js 0x458f8b
mov eax, 0x5a4d
cmp word [edi], ax
je 0x458ea5
mov esi, 0x80070714
jmp 0x458f8b
lea esi, [edi + 1]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0xa
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x458f1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x458f1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x458f1d
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [ebp - 0x28]
push esi
call fcn.0045c9e0
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.004a0000
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x458f36
mov dword [eax], esi
jmp 0x458f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x458f34
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x458f8b
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x28]
jns 0x458f48
push 0x80070057
call fcn.00422c50
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x458f63
push esi
mov ecx, ebx
call fcn.00444180
push esi
push dword [ebp - 0x28]
push dword [ebx]
call fcn.004a0000
add esp, 0xc
mov ecx, ebx
push esi
call fcn.0044a910
mov eax, dword [ebp - 0x28]
xor esi, esi
test eax, eax
je 0x458f8b
push eax
call fcn.0047d4a0
add esp, 4
xor ebx, ebx
test edi, edi
je 0x458fa3
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x458fa3
call fcn.0042ba40
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x458fc0
push eax
call edi
test eax, eax
jne 0x458fc0
test ebx, ebx
js 0x458fc0
call fcn.0042ba40
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458fca
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret