Function at 0x4a09c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1024
call fcn.004df2e0
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1030]
mov ecx, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp dword [eax + 0x50f128], ecx
je 0x4a0a00
add eax, 0x38
inc ebx
cmp eax, 0x460
jb 0x4a09e8
jmp 0x4a0cbb
cmp ebx, 0xffffffff
je 0x4a0cbb
push esi
push edi
push 0x18
call fcn.004ada80
push 0x18
mov dword [esp + 0x18], eax
call fcn.004adad0
cmp dword [0x544748], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
je 0x4a0ae4
xor eax, eax
jmp 0x4a0a40
movzx ecx, word [eax + str.Toolbar_]
mov word [esp + eax + 0x30], cx
add eax, 2
test cx, cx
jne 0x4a0a40
lea eax, [ebx*8]
sub eax, ebx
mov eax, dword [eax*8 + 0x50f15c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a0a66
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a0a80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x5446c8
call fcn.0049efe0
mov esi, eax
test esi, esi
je 0x4a0ae4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, 0x545754
call fcn.0049ffe0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call fcn.004ae730
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test byte [ebp + 0x10], 1
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
je 0x4a0b16
push 0xd
call esi
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xe
mov dword [esp + 0x30], eax
call esi
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x20]
push 0
push 0
push 0x4f9a98
lea esi, [ebp + 0x1c]
push esi
add edx, 3
add dword [esi], edx
mov eax, dword [esi]
mov edx, dword [ebp + 0x18]
push 2
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
mov eax, 0xfffffffd
sub eax, dword [esp + 0x14]
add edi, edi
add dword [esi], eax
mov ecx, dword [edi + edi + 0x50f134]
add edi, edi
push ecx
call fcn.004610c0
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x4a0b70
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x4a0b70
sub ecx, edx
mov edx, dword [ebp + 0x20]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esi]
add edx, 4
push edx
lea edx, [ecx + eax + 7]
mov eax, dword [ebp + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutW]
cmp dword [esp + 0x10], 0
jne 0x4a0c3a
push 4
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [edi + 0x50f130]
mov ecx, dword [0x5275b4]
push 2
push edi
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x5275b4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a0bed
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x4a0bf5
mov dword [esp + 0x24], 0x800080
mov ecx, dword [0x5275b4]
push 1
lea eax, [esp + 0x28]
push eax
push 0
push edi
push ecx
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
mov dword [esp + 0x10], eax
call fcn.004adb20
test al, al
je 0x4a0c3a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push edx
push eax
push edi
call fcn.004ae730
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], ebx
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push ecx
push edi
call ebx
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x20]
push 0xcc0020
push 0
push 0
push edi
push edx
mov edx, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
test byte [ebp + 0x10], 1
pop edi
pop esi
je 0x4a0cbb
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x1028]
pop ebp
pop ebx
xor ecx, esp
call fcn.004df2c4
add esp, 0x1024
ret 4