Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x444428
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
movzx ecx, word [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x4c]
mov edx, dword [0x45cbec]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov eax, dword [0x45cbec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x45cbec]
push esi
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebp
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x18]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x401375
cmp dword [esp + 0x18], ebx
je 0x401375
cmp eax, ebx
je 0x401375
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push eax
call fcn.00431c40
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov esi, vtable.Gdiplus::Image.0
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esp + 0x28], eax
mov byte [esp + 0x3c], 2
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x20]
call eax
mov ebp, dword [esp + 0x44]
mov byte [esp + 0x3c], bl
mov ecx, dword [esp + 0x24]
push ecx
mov dword [ebp], eax
mov dword [esp + 0x24], esi
call sub.gdiplus.dll_GdipDisposeImage
push 0x1c
call fcn.0040f1d6
add esp, 4
cmp eax, ebx
je 0x4012ef
mov esi, eax
call fcn.004013e0
mov esi, eax
jmp 0x4012f1
xor esi, esi
mov edx, dword [ebp]
movzx ecx, word [0x45cbf0]
mov eax, dword [esp + 0x48]
mov dword [esi], edx
lea edx, [esp + 0x4c]
mov dword [esi + 8], ecx
lea ecx, [esi + 0xc]
push edx
mov dword [esi + 4], eax
call fcn.00402160
mov eax, dword [0x45cbf4]
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov dword [eax + 0x18], esi
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
call fcn.0040f605
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40138f
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x1c]
push str.Image_Resource_Error:_d
push edx
mov byte [esp + 0x48], 1
call fcn.004023f0
mov eax, dword [esp + 0x24]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.004024a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401450
int3