Function at 0x490afe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x71c1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
je 0x4910ee
cmp dword [eax + 4], 0
je 0x4910ee
cmp dword [ebx + 0xc], 0
jne 0x4910ee
mov eax, dword [ebx + 0x18]
xor ecx, ecx
and dword [ebp - 0x24], ecx
xor edi, edi
and dword [ebp - 0x1c], ecx
mov esi, 0x491644
and dword [ebp - 0x28], ecx
and dword [ebp - 0x2c], ecx
and dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax - 0xc], ecx
je 0x490c11
test eax, eax
je 0x490b83
push eax
call fcn.0060fe00
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x490b79
add eax, eax
push eax
call fcn.00420fb8
pop ecx
test al, al
jne 0x490b83
mov eax, 0x8007000e
jmp 0x4910f3
push esi
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
push 0
push 0
mov ecx, esi
call fcn.00492bac
mov eax, dword [esi + 0x14]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x490bca
push edi
call fcn.0060fe00
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x490bce
xor eax, eax
jmp 0x490be2
lea eax, [esi + esi]
call fcn.005f0cb0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041f988
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 1
push SysReAllocStringLen
push 0
push eax
push dword [ebp - 0x18]
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
jns 0x490ddf
mov eax, edi
jmp 0x4910f3
cmp dword [ebx + 0x10], ecx
je 0x490d7a
and dword [ebp - 0x18], ecx
movzx esi, word [ebx + 0x10]
call fcn.00439739
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x490c38
mov eax, str.image
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov edi, esi
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
test esi, esi
je 0x490c77
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
jmp 0x490c7a
mov eax, dword [ebp - 0x18]
test edi, edi
js 0x490ddf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x20], eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
test eax, eax
je 0x490ddf
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
test eax, eax
je 0x490ddf
push 0x491644
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
push 0
push 0
mov ecx, esi
call fcn.00492bac
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x38]
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x490ddf
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x490ddf
push 0x491644
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
xor edi, edi
mov ecx, esi
push edi
push edi
call fcn.00492bac
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 1
push edi
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
jmp 0x490ddf
cmp dword [ebx + 0x24], ecx
je 0x490de2
push esi
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
xor edi, edi
mov ecx, esi
push edi
push edi
call fcn.00492bac
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebx + 0x24]
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x490ddf
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xc]
push ecx
push 0
push dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x14]
call dword [0x68dd90]
call dword [esi + 0x14]
mov ecx, dword [ebp - 0x14]
cmp dword [ebx + 0xc], 0
jne 0x49101d
test edi, edi
js 0x49101d
test ecx, ecx
je 0x490e1e
mov eax, dword [ecx]
mov esi, dword [eax + 0x34]
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
test edi, edi
js 0x49101a
push 0x491644
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
push 0
push 0
mov ecx, esi
call fcn.00492bac
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x28]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x49101a
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x490e92
test eax, eax
jne 0x490e92
mov ecx, dword [ebp - 0x1c]
fldz
push 1
push ecx
push ecx
fstp qword [esp]
push eax
push eax
push 0x6caaf8
push dword [ebp - 0x10]
jmp 0x490fe3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x49101a
mov esi, dword [ebp - 8]
test esi, esi
jne 0x490f10
mov eax, dword [ebp - 0xc]
fild dword [ebp - 0xc]
test eax, eax
jns 0x490ece
fadd dword [0x6a0450]
fstp dword [ebp - 8]
fld dword [ebp - 8]
mov eax, dword [ebp - 0x18]
fild dword [ebp - 0x18]
test eax, eax
jns 0x490ee4
fadd dword [0x6a0450]
fstp dword [ebp - 8]
fdiv dword [ebp - 8]
mov eax, dword [ebp - 0x20]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fild dword [ebp - 0x20]
test eax, eax
jns 0x490f00
fadd dword [0x6a0450]
fstp dword [ebp - 8]
fmul dword [ebp - 8]
call fcn.005f19b0
mov dword [ebp - 8], eax
jmp 0x490f66
cmp dword [ebp - 0xc], 0
jne 0x490f66
mov dword [ebp - 0xc], esi
fild dword [ebp - 0xc]
test esi, esi
jns 0x490f26
fadd dword [0x6a0450]
fstp dword [ebp - 0xc]
fld dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
fild dword [ebp - 0x20]
test eax, eax
jns 0x490f3c
fadd dword [0x6a0450]
fstp dword [ebp - 0xc]
fdiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
fstp dword [ebp - 0xc]
fld dword [ebp - 0xc]
fild dword [ebp - 0x18]
test eax, eax
jns 0x490f58
fadd dword [0x6a0450]
fstp dword [ebp - 0xc]
fmul dword [ebp - 0xc]
call fcn.005f19b0
mov dword [ebp - 0xc], eax
push 0x491644
mov ecx, 0x71b658
call fcn.0048545b
mov esi, eax
test esi, esi
je 0x491107
push 0
push 0
mov ecx, esi
call fcn.00492bac
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x2c]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x49101a
mov ecx, dword [ebp - 0x2c]
push 2
push dword [ebp - 0xc]
push dword [ebp - 8]
mov eax, dword [ecx]
push dword [ebp - 0x10]
push ecx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x49101a
mov ecx, dword [ebp - 0x1c]
fldz
push 1
push ecx
push ecx
fstp qword [esp]
push 0
push 0
push 0x6caaf8
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
test edi, edi
js 0x49101a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov esi, dword [eax + 0x14]
lea eax, [ebx + 0xc]
push eax
push 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [0x68dd90]
call esi
mov edi, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jne 0x491029
and dword [ebp - 0x10], 0
test ecx, ecx
je 0x491041
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x49105c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x491077
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x491092
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4910ad
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4910c8
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68dd90]
call esi
and dword [ebp - 0x10], 0
cmp dword [ebx + 0x28], 0
je 0x490c0a
cmp dword [ebx + 0x24], 0
je 0x490c0a
push dword [ebx + 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx + 0x24], 0
jmp 0x490c0a
mov eax, 0x80004005
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f1450
leave
ret 4
call fcn.0041ee2b
int3