Function at 0x4047be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41255e
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x418250]
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, dword [ebp + 0x10]
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0xf0], edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [esi + 4]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe4], ebx
cmp eax, 0x111
ja 0x404b30
je 0x404ac3
dec eax
cmp eax, 0xf
ja case.0x4047b7.3
movzx ecx, byte [eax + 0x404be4]
jmp dword [ecx*4 + 0x404bd0]
push 0x4133e4
push 0x71
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4049e7
mov edx, dword [0x419450]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push 0
mov dword [ebp - 0xe0], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4049e7
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4049e0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 0xf4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4049d9
mov ecx, dword [ebp - 0xf4]
test ecx, ecx
je 0x4049d9
mov edx, dword [ebp - 0xe0]
push edx
push eax
push ecx
call fcn.00406570
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xec]
push eax
push 0
push ebx
mov dword [ebp - 0xec], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x404888
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x404bb2
mov ecx, dword [ebp - 0xec]
push 0x10
mov dword [ebp - 0xe0], ecx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x4048c2
mov edx, dword [ebp - 0xe0]
lea eax, [edi + 4]
push eax
push edx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x4048c4
xor edi, edi
push ebx
mov dword [esi + 0x74], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x64]
push eax
call fcn.00405f50
add esp, 4
xor ebx, ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401490
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401490
push str.UnChecked.png
lea ecx, [ebp - 0x48]
call fcn.004027c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x404966
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x40494f
lea ecx, [ebp - 0x48]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x404968
xor edi, edi
push 0x4133a8
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x80], edi
call fcn.004027c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x4049ab
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x404994
lea ecx, [ebp - 0x2c]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x4049ad
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x7c], edi
call fcn.00401210
lea ecx, [ebp - 0x48]
call fcn.00401210
lea ecx, [ebp - 0x64]
call fcn.00401210
mov ebx, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xf0]
jmp case.0x4047b7.3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x404bb2
lea edi, [esi + 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
push eax
push ebx
mov ecx, esi
call fcn.004044f0
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov edi, dword [ebp - 0xf0]
jmp case.0x4047b7.3
push 0
push 0x413578
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0xa0]
call fcn.00405e00
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 4
call fcn.004058e0
cmp dword [esi + 0x84], 0
je 0x404a69
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x7c], 4
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
jmp case.0x4047b7.3
lea ecx, [ebp - 0xa0]
call fcn.00405c60
inc eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
jmp case.0x4047b7.3
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x404aa5
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x74], 0
mov ecx, dword [ebp - 0xe0]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x4047b7.3
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, eax
jne 0x404b26
cmp dword [esi + 0x88], edi
jne 0x404b26
lea ecx, [ebp - 0xdc]
call fcn.00405e00
mov edi, 3
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], edi
call fcn.004058e0
mov ecx, dword [esi + 0x88]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x404b14
mov dword [ebp - 0xb8], edi
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
mov eax, 1
jmp 0x404bb2
sub eax, 0x200
je 0x404b79
dec eax
je 0x404b4e
sub eax, 0x200
jne case.0x4047b7.3
push eax
push eax
push 0x10
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4047b7.3
movsx edx, di
mov eax, edi
shr eax, 0x10
movsx ecx, ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe8], edx
lea edx, [ebp - 0xe8]
push edx
mov dword [ebp - 0xe4], ecx
push eax
mov ecx, esi
call fcn.004043c0
jmp case.0x4047b7.3
movsx ecx, di
mov dword [ebp - 0xe8], ecx
mov edx, edi
shr edx, 0x10
movsx eax, dx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0xe8]
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0xe4], eax
call fcn.00404460
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
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.00407142
mov esp, ebp
pop ebp
ret 0xc