Function at 0x406d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov dword [ebp - 0x160], ecx
push str.IDR_EXE
push 0x82
call fcn.00407c80
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + 4]
push eax
call fcn.00407c80
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x160]
cmp dword [edx + 0xc], 0
je 0x406e03
mov eax, dword [ebp - 0x160]
cmp dword [eax + 8], 0
jne 0x406e0a
xor eax, eax
jmp 0x407121
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 0x10], eax
push 0
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0040f400
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov dword [ecx], eax
lea edx, [ebp - 0x13c]
push edx
push 0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
push ecx
call fcn.0040f420
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
call fcn.00421e6d
add esp, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx]
push edx
call fcn.0040f5b0
add esp, 0x10
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x1c
call fcn.00401620
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x148]
call fcn.00402c90
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
call fcn.00401640
mov edx, dword [ebp - 0x140]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x148]
call fcn.004015e0
push 0x42a910
mov ecx, dword [ebp - 0x160]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x14c]
push edx
call fcn.004027f0
add esp, 0xc
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x160]
add ecx, 0x20
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.004015e0
mov edx, dword [ebp - 0x140]
push edx
mov ecx, dword [ebp - 0x160]
add ecx, 0x24
call fcn.00401620
mov eax, dword [ebp - 0x140]
push eax
lea ecx, [ebp - 0x150]
call fcn.00402c90
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
call fcn.00401640
mov ecx, dword [ebp - 0x140]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x140], edx
lea ecx, [ebp - 0x150]
call fcn.004015e0
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x28
call fcn.00401620
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x154]
call fcn.00402c90
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
call fcn.00401640
mov edx, dword [ebp - 0x140]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x154]
call fcn.004015e0
mov ecx, dword [ebp - 0x160]
add ecx, 0x28
call fcn.00401640
test eax, eax
je 0x407036
mov ecx, dword [ebp - 0x160]
add ecx, 0x24
call fcn.00401640
test eax, eax
jne 0x407036
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x160]
add ecx, 0x24
call fcn.00401620
mov edx, dword [ebp - 0x140]
push edx
mov ecx, dword [ebp - 0x160]
add ecx, 0x2c
call fcn.00401620
mov eax, dword [ebp - 0x140]
push eax
lea ecx, [ebp - 0x158]
call fcn.00402c90
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
call fcn.00401640
mov ecx, dword [ebp - 0x140]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x140], edx
lea ecx, [ebp - 0x158]
call fcn.004015e0
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x30
call fcn.00401620
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00402c90
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
call fcn.00401640
mov edx, dword [ebp - 0x140]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x15c]
call fcn.004015e0
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x140]
mov eax, dword [edx]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x140]
add ecx, 4
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x140]
add edx, 4
mov dword [ebp - 0x140], edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret