Function at 0x40a340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x290
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x28c], eax
mov eax, dword [esp + 0x294]
push ebx
push ebp
push esi
mov esi, dword [0x43d428]
push edi
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x2a8]
push 0xf1
push eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x40a3e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40a3e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x40a3e4
movzx eax, word [edi + 6]
lea esi, [esp + 0x90]
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], ebx
call fcn.0040ff60
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x40a3eb
lea ecx, [esp + 0x94]
cmp dword [esp + 0x90], ecx
je 0x40a3e4
lea eax, [esp + 0x90]
call fcn.0040d690
xor eax, eax
jmp 0x40a606
xor edx, edx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x18], edx
cmp si, word [edi + 6]
jae 0x40a43e
add eax, 8
lea esi, [edx + 8]
cmp word [edi + ecx*2 + 8], bx
je 0x40a41c
mov dword [eax - 8], edx
movzx ebp, word [edi + ecx*2 + 8]
inc edx
mov dword [eax - 4], ebp
mov byte [eax], 4
mov byte [eax + 1], bl
jmp 0x40a428
mov dword [eax - 8], esi
mov dword [eax - 4], ebx
mov byte [eax], bl
mov byte [eax + 1], 1
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
movzx ebp, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, ebp
jl 0x40a401
mov dword [esp + 0x18], edx
mov edx, dword [0x43d424]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2ac]
push ebx
push edx
push 0xe800
push eax
push 0x64
push 0x64
push ebx
push ebx
push ecx
push ebx
push str.ToolbarWindow32
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
cmp esi, ebx
jne 0x40a484
lea edx, [esp + 0x94]
cmp dword [esp + 0x90], edx
jmp 0x40a3d6
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x14
push 0x41e
push esi
call ebp
push ebx
push ebx
push 0x31
push esi
call ebp
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x40a4b0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x10], eax
push 0x58
lea eax, [esp + 0x38]
push ebx
push eax
mov dword [esp + 0x3c], ebx
call fcn.0041e460
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
movzx eax, ax
push 2
mov dword [esp + 0x14], eax
mov eax, dword [0x43d428]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx eax, word [eax + 0xe]
cmp ax, 4
jbe 0x40a551
mov ecx, 0xff000000
cmp ax, 0x20
jne 0x40a528
or ecx, 0xffffffff
movzx eax, word [edi + 2]
mov edx, dword [0x43d428]
push 0x2040
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push 1
push eax
push ecx
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
push eax
push ebx
push 0x430
jmp 0x40a577
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2a8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x28], ecx
push 0x413
push esi
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push 0x444
push esi
call ebp
movzx eax, word [edi + 4]
mov ecx, dword [esp + 0x10]
cmp ax, cx
movzx eax, ax
ja 0x40a59f
movzx eax, cx
movzx ecx, word [edi + 2]
movzx eax, ax
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x420
push esi
call ebp
movzx eax, word [edi + 4]
mov ecx, dword [esp + 0x10]
cmp ax, cx
movzx eax, ax
ja 0x40a5c8
movzx eax, cx
add eax, 7
movzx edx, ax
mov ax, word [edi + 2]
add ax, 7
movzx ecx, ax
shl edx, 0x10
or edx, ecx
push edx
push ebx
push 0x41f
push esi
call ebp
lea edx, [esp + 0x94]
cmp dword [esp + 0x90], edx
je 0x40a604
lea eax, [esp + 0x90]
call fcn.0040d690
mov eax, esi
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041cac6
add esp, 0x290
ret