Function at 0x1046d2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.01008080
mov esi, dword [eax + 4]
push 0xf1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x1046d66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x1046d6d
xor eax, eax
jmp 0x1046fa0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
cmp esi, ebx
je 0x1046fa0
cmp dword [ebp + 0xc], ebx
setne al
mov dword [ebp - 8], eax
movzx eax, word [esi + 6]
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [eax + eax*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.0104ae00
cmp dword [ebp + 0xc], ebx
mov edi, esp
mov dword [ebp - 0x10], edi
je 0x1046dc4
mov dword [edi], 4
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov byte [edi + 9], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov ecx, dword [ebp - 4]
push 0x64
pop eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
push 0x1004bec
mov dword [ebp - 0x20], ebx
call fcn.01046c72
push ebx
push 0x14
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
push 0x41e
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esi + 6], bx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], ebx
jbe 0x1046ec8
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
lea edi, [edi + eax*4 + 8]
mov eax, dword [ebp + 0xc]
lea eax, [esi + eax*2 + 8]
cmp word [eax], bx
je 0x1046e9f
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0x14]
mov dword [edi - 8], ecx
movzx ecx, word [eax]
mov dword [edi - 4], ecx
mov byte [edi], 4
mov byte [edi + 1], 0x10
mov dword [edi + 4], ebx
movzx eax, word [eax]
push eax
call fcn.01008080
mov ecx, eax
call fcn.010088ae
push eax
lea ecx, [ebp - 0xc]
call fcn.0104d19c
lea ecx, [ebp - 0xc]
call fcn.0104ced3
lea ecx, [ebp - 0xc]
call fcn.0104c957
test eax, eax
je 0x1046e79
or dword [edi + 8], 0xffffffff
jmp 0x1046e95
lea ecx, [ebp - 0xc]
call fcn.0104cc1b
lea ecx, [ebp - 0xc]
call fcn.0104c9be
mov ecx, dword [ebp - 4]
push eax
call fcn.01046b16
mov dword [edi + 8], eax
lea ecx, [ebp - 0xc]
call fcn.0104cd4c
jmp 0x1046eb5
mov dword [edi - 8], 8
mov dword [edi - 4], ebx
mov byte [edi], bl
mov byte [edi + 1], 1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
movzx eax, word [esi + 6]
inc dword [ebp + 0xc]
add edi, 0x14
cmp dword [ebp + 0xc], eax
jl 0x1046e21
call fcn.0105e86d
test eax, eax
je 0x1046eec
call fcn.01008080
push 0x2000
push ebx
mov edi, 0xff000000
push edi
push ebx
push 0x10
push 0x2bf
jmp 0x1046f01
call fcn.01008080
push ebx
push ebx
mov edi, 0xff000000
push edi
push ebx
push 0x10
push 0x2c0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
cmp eax, ebx
je 0x1046f1b
mov ecx, dword [ebp - 4]
push eax
mov dword [ecx + 0x30], eax
call fcn.01046b2d
call fcn.0105e86d
test eax, eax
je 0x1046f56
call fcn.01008080
mov eax, dword [eax + 4]
push 0x2000
push ebx
push edi
push ebx
push 0x10
push 0x2be
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
cmp eax, ebx
je 0x1046f56
mov edi, dword [ebp - 4]
push eax
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.01046b44
jmp 0x1046f59
mov edi, dword [ebp - 4]
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.01046afd
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
mov ecx, edi
call fcn.01046ada
movzx eax, word [esi + 2]
add eax, 7
lea ecx, [eax + eax*4]
push ecx
push eax
mov ecx, edi
call fcn.01046ab7
movzx eax, word [esi + 2]
add eax, 7
lea ecx, [eax + eax*4]
push ecx
push eax
mov ecx, edi
call fcn.01046b5b
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
leave
ret 0x10