Function at 0x402da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb788
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x50d4cc]
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 edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
call dword [eax + 0x34]
mov ecx, dword [ebp - 0x14]
mov ebx, 0x8007000e
mov eax, dword [ebp + 8]
test ecx, ecx
push esi
cmove ecx, dword [0x517648]
movzx eax, ax
push eax
push ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x402e0f
mov ebx, 0x80004005
jmp 0x402f96
mov esi, dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402f96
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x402f8d
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00401910
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x402e62
push 0x80004005
call fcn.00401330
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x14]
push str.uires_memory__d
push eax
call fcn.00408450
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov dword [edi + 0x24], ebx
push esi
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [edi + 0x28], ecx
test ecx, ecx
jne 0x402eb4
call fcn.00401520
mov ebx, eax
jmp 0x402efe
push 0
push dword [edi + 0x24]
mov dword [edi + 0x30], 0
push dword [edi + 0x30]
mov dword [edi + 0x34], 0
push dword [edi + 0x34]
mov dword [edi + 0x38], 0xf001f
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x402f05
call fcn.00401520
push dword [edi + 0x28]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], 0
test ebx, ebx
js 0x402f70
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x1c]
push dword [edi + 0x20]
call fcn.0048f670
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
push ebx
push dword [edi + 0x20]
call dword [eax + 0x4c]
mov ebx, eax
test ebx, ebx
jns 0x402f70
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x402f4d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x402f46
call fcn.00401520
mov dword [ebp - 0x14], eax
mov dword [edi + 0x20], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x402f70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x402f69
cmp dword [ebp - 0x14], eax
jl 0x402f69
call fcn.00401520
mov dword [edi + 0x28], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f8d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
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.0048b090
mov esp, ebp
pop ebp
ret 0xc