Function at 0x423280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 8], eax
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x42352c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x423520
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x423520
movzx ecx, word [esi + 0xe]
cmp ecx, 8
jbe 0x4232f0
cmp dword [esi + 0x10], ebx
jne 0x4232f0
mov edi, dword [esi]
mov dword [ebp - 0xc0], ebx
jmp 0x423306
mov eax, dword [esi]
mov edx, 1
shl edx, cl
mov dword [ebp - 0xc0], 1
lea edi, [eax + edx*4]
push edi
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x423520
push edi
lea ecx, [edi + esi]
push esi
push eax
mov dword [ebp - 0xd4], ecx
call fcn.0047efe0
add esp, 0xc
cmp dword [ebp - 0xc0], ebx
je 0x423408
mov eax, dword [ebp - 0xc4]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [eax]
add ebx, eax
xor esi, esi
nop word [eax + eax]
mov eax, dword [esi + 0x4a7f3c]
push dword [esi + 0x4a7f40]
mov dword [ebp + esi - 0x38], eax
call edi
mov dword [ebp + esi - 0x34], eax
add esi, 8
cmp esi, 0x30
jb 0x423360
xor esi, esi
mov ecx, dword [ebp + esi - 0x34]
movzx edx, cl
shl edx, 8
movzx eax, cx
shr eax, 8
or edx, eax
shr ecx, 0x10
shl edx, 8
movzx eax, cl
mov ecx, dword [ebp + esi - 0x38]
or edx, eax
mov dword [ebp + esi - 0xb8], edx
movzx edx, cl
shl edx, 8
movzx eax, cx
shr eax, 8
or edx, eax
shr ecx, 0x10
shl edx, 8
movzx eax, cl
or edx, eax
mov dword [ebp + esi - 0xbc], edx
add esi, 8
cmp esi, 0x30
jl 0x423380
xor esi, esi
mov edx, dword [ebx + esi*4]
xor eax, eax
and edx, 0xffffff
nop dword [eax]
lea ecx, [eax*8]
cmp edx, dword [ebp + ecx - 0xbc]
je 0x4233f8
inc eax
cmp eax, 6
jl 0x4233e0
jmp 0x423402
mov eax, dword [ebp + ecx - 0xb8]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, 0x10
jl 0x4233d2
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0xd8], esi
test esi, esi
je 0x42350c
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [ebp - 0xc0], edi
test edi, edi
je 0x423503
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xd0], ecx
cmp ecx, 3
je 0x423461
mov dword [eax + 0x10], ebx
push 0
push 0
lea ecx, [ebp - 0xe0]
push ecx
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0xd0]
mov ebx, eax
mov eax, dword [ebp - 0xc4]
mov dword [eax + 0x10], ecx
test ebx, ebx
jne 0x4234a4
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
je 0x4234fc
push ebx
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
mov ecx, dword [ebp - 0xc8]
mov esi, eax
mov eax, dword [ebp - 0xcc]
push 0xcc0020
push 0
push dword [ebp - 0xc4]
push dword [ebp - 0xd4]
push ecx
push eax
push 0
push 0
push ecx
push eax
push 0
push 0
push dword [ebp - 0xc0]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push esi
push dword [ebp - 0xc0]
call edi
mov esi, dword [ebp - 0xd8]
mov edi, dword [ebp - 0xc0]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0xc4]
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0x14