Function at 0x406660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42475b
push eax
mov dword fs:[0], esp
sub esp, 0x140
push esi
mov esi, ecx
call fcn.00423063
mov eax, dword [eax + 0xc]
push str.IDR_EXE
push 0x82
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [esi + 4], eax
call fcn.00423063
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4068e7
mov eax, dword [esi + 8]
test eax, eax
je 0x4068e7
mov edx, dword [esi + 4]
push ebx
push ebp
push edi
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0040c410
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.0040a110
mov edx, dword [esp + 0x164]
push edx
call fcn.0041deea
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esp + 0x168]
push eax
push edi
push ecx
push edx
call fcn.0040c720
add esp, 0x2c
lea ebx, [esi + 0x1c]
push edi
mov ecx, ebx
call fcn.00401960
push edi
lea ecx, [esp + 0x24]
call fcn.00402560
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea edi, [edi + eax + 1]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40675e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str..exe
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [esi + 0x20]
push eax
mov dword [esp + 0x15c], 0
call fcn.004016b0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x158], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ebp, [esi + 0x24]
push edi
mov ecx, ebp
call fcn.00401960
push edi
lea ecx, [esp + 0x14]
call fcn.00402560
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edi, [edi + ecx + 1]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ebx, [esi + 0x28]
push edi
mov ecx, ebx
call fcn.00401960
push edi
lea ecx, [esp + 0x18]
call fcn.00402560
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edi, [edi + ecx + 1]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x406841
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x406841
push edi
mov ecx, ebp
call fcn.00401960
push edi
lea ecx, [esi + 0x2c]
call fcn.00401960
push edi
lea ecx, [esp + 0x1c]
call fcn.00402560
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
lea edi, [edi + eax + 1]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40687b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
lea ecx, [esi + 0x30]
call fcn.00401960
push edi
lea ecx, [esp + 0x20]
call fcn.00402560
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edi, [edi + ecx + 1]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4068b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 4]
add edi, 4
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 4]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x18], edx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
add esp, 0x14c
ret
mov ecx, dword [esp + 0x144]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14c
ret