Function at 0x45cde0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x54bf70]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
movaps xmm0, xmmword [0x54bf00]
movups xmmword [ebp - 0x24], xmm0
push ebx
movss xmm0, dword [0x553328]
comiss xmm0, dword [0x549a38]
push esi
push edi
push 0x31
mov dword [ebp - 0xd4], 0
setbe cl
xor eax, eax
add ecx, 0xfffffffb
comiss xmm0, dword [0x549a50]
seta al
sub ecx, eax
mov dword [ebp - 0xdc], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov dword [ebp - 0xe0], ebx
cmp ebx, 0x36
jl 0x45ce6d
mov edi, 0x40
mov dword [ebp - 0xd4], 0x14
jmp 0x45ceb1
cmp ebx, 0x28
jl 0x45ce83
mov edi, 0x30
mov dword [ebp - 0xd4], 0x14
jmp 0x45ceb1
cmp ebx, 0x1c
jl 0x45ce99
mov edi, 0x20
mov dword [ebp - 0xd4], 0x14
jmp 0x45ceb1
cmp ebx, 0x14
jl 0x45ceaf
mov edi, 0x18
mov dword [ebp - 0xd4], 0xa
jmp 0x45ceb1
mov edi, ebx
mov ecx, str.ComDlg32
call fcn.004593c0
push 0x8000
push edi
push edi
push 1
mov esi, eax
push 0x241
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
push 0x8000
push edi
push edi
push 1
push 0x242
push esi
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0xd8], eax
call esi
mov ecx, str.Shell32
mov dword [ebp - 0xcc], eax
call fcn.004593c0
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0xe4], eax
jne 0x45cf2b
push 0x8000
push edi
push edi
push 1
push 0x416d
push eax
call esi
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xe4]
cmp dword [ebp - 0xd8], 0
jne 0x45cf4b
push 0x8000
push edi
push edi
push 1
push 0x416e
push eax
call esi
mov dword [ebp - 0xd8], eax
push 0
push 1
push 0x20020
push ebx
push ebx
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_Create]
call ebx
push 0
push 1
push 0x20020
mov dword [0x5a094c], eax
mov eax, dword [ebp - 0xe0]
push eax
push eax
call ebx
push dword [ebp - 0xcc]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xffffffffffffffff
push dword [0x5a094c]
mov dword [0x5a0950], eax
call ebx
push dword [ebp - 0xd8]
push 0xffffffffffffffff
push dword [0x5a0950]
call ebx
push 0x200
push 0
push 0x59f578
call fcn.004ab0f0
add esp, 0xc
push 0x80
push 0x59f578
push 0xffffffffffffffff
push 0xc2f
call fcn.0041e970
push eax
xor eax, eax
cmp dword [0x5a2504], eax
setne al
add eax, 0xc31
push eax
call fcn.0041e970
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push dword [0x5a29d0]
push 0x413
push dword [0x5a2ae4]
push 0
push 0
push 0
push 0
push 0x56011958
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 6
push 0x2007
push eax
mov dword [0x5a23dc], eax
mov dword [ebp - 0xcc], esi
call esi
push 0x8c
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.004ab0f0
add esp, 0xc
mov dword [ebp - 0xb4], 0x404
mov word [ebp - 0xb0], 0x5004
mov dword [ebp - 0xa8], 0x59f578
mov dword [ebp - 0xb8], 0
push dword [0x5a094c]
push 0
push 0x430
push dword [0x5a23dc]
call esi
push 0
push 0x14
push 0x41e
push dword [0x5a23dc]
call esi
lea eax, [ebp - 0xb8]
push eax
push 1
push 0x444
push dword [0x5a23dc]
call esi
mov edi, dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
push eax
push 0x404
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call ebx
push 2
lea eax, [ebp - 0xc8]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
call edi
lea eax, [ebp - 0xec]
push eax
push 0
push 0x463
push dword [0x5a23dc]
call esi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc4]
sub eax, ecx
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push eax
push dword [ebp - 0xec]
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0xdc]
push ecx
push eax
push dword [0x5a23c4]
push dword [0x5a23dc]
call esi
push 0xc2f
call fcn.0041e970
mov ecx, dword [0x5a23dc]
add esp, 4
mov edx, eax
call fcn.00459a60
push 0x80
push 0x59f678
push 0xffffffffffffffff
push 0xc30
call fcn.0041e970
push eax
xor eax, eax
cmp dword [0x5a2508], eax
setne al
add eax, 0xc31
push eax
call fcn.0041e970
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push dword [0x5a29d0]
push 0x414
push dword [0x5a2ae4]
push 0
push 0
push 0
push 0
push 0x56011958
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 6
push 0x2007
push eax
mov dword [0x5a23ec], eax
call dword [ebp - 0xcc]
push 0x8c
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.004ab0f0
add esp, 0xc
mov dword [ebp - 0xb4], 0x405
mov word [ebp - 0xb0], 0x5004
mov dword [ebp - 0xa8], 0x59f678
mov dword [ebp - 0xb8], 0
push dword [0x5a094c]
push 0
push 0x430
push dword [0x5a23ec]
call dword [ebp - 0xcc]
push 0
push 0x14
push 0x41e
push dword [0x5a23ec]
call dword [ebp - 0xcc]
lea eax, [ebp - 0xb8]
push eax
push 1
push 0x444
push dword [0x5a23ec]
call dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
push eax
push 0x405
push dword [ebp - 0xd0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
push 2
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xd0]
push 0
call edi
lea eax, [ebp - 0xec]
push eax
push 0
push 0x463
push dword [0x5a23ec]
call dword [ebp - 0xcc]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc4]
sub eax, ecx
push 0
push eax
push dword [ebp - 0xec]
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0xdc]
push ecx
push eax
push dword [0x5a29d8]
push dword [0x5a23ec]
call esi
push 0xc30
call fcn.0041e970
mov ecx, dword [0x5a23ec]
add esp, 4
mov edx, eax
call fcn.00459a60
push 0
push dword [0x5a29d0]
push 0x417
push dword [0x5a2ae4]
push 0
push 0
push 0
push 0
push 0x56011958
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 8
push 0x20020
mov dword [0x5a23e8], eax
mov eax, dword [ebp - 0xe0]
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebp - 0xd0], eax
xor edi, edi
mov eax, dword [ebp - 0xd4]
movzx ecx, ax
mov dword [ebp - 0xd4], ecx
nop word [eax + eax]
mov ax, word [edi*4 + str.yz]
mov esi, dword [0x5a29d0]
add ax, cx
push 0xa
movzx eax, ax
push eax
push esi
mov dword [ebp - 0xdc], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x45d3ae
call fcn.0044b6b0
push eax
push str.toolbar_icon
push str.Could_not_locate_resource__s:__s
call fcn.0044b0b0
mov eax, dword [ebp - 0xdc]
add esp, 0xc
jmp 0x45d3fa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xe4], eax
test eax, eax
jne 0x45d3e0
call fcn.0044b6b0
push eax
push str.toolbar_icon
push str.Could_not_load_resource__s:__s
call fcn.0044b0b0
mov eax, dword [ebp - 0xdc]
add esp, 0xc
jmp 0x45d3fa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xe4]
mov dword [ebp - 0xd8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 0
push 0x30000
push 1
push dword [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
cmp dword [0x55a760], 0
mov esi, eax
je 0x45d44e
test edi, edi
jne 0x45d44e
mov ecx, esi
call fcn.00453a60
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0xd0]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0xd4]
inc edi
jmp 0x45d360
mov ebx, dword [ebp - 0xd0]
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0xd4]
inc edi
cmp edi, 4
jb 0x45d360
mov edi, dword [ebp - 0xcc]
push ebx
push 0
push 0x430
push dword [0x5a23e8]
call edi
push 0
push 0x14
push 0x41e
push dword [0x5a23e8]
call edi
push 0x8c
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.004ab0f0
add esp, 0xc
mov esi, 7
cmp dword [0x55b1f8], 0
je 0x45d4d1
mov eax, dword [ebp - 8]
mov esi, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
movss xmm0, dword [0x553328]
lea edx, [ebp - 0xb0]
movss xmm1, dword [0x549a3c]
xor ebx, ebx
mov edi, 0x5448f8
nop
test bl, 1
jne 0x45d50d
mov ecx, ebx
shr ecx, 1
shl ecx, 2
mov eax, dword [ebp + ecx - 0x14]
mov dword [edx - 4], eax
mov eax, dword [ebp + ecx - 0x24]
mov cl, 4
xor ch, ch
jmp 0x45d524
comiss xmm1, xmm0
mov eax, 0x52aa1c
mov cl, 0x10
mov ch, cl
cmovbe eax, edi
mov dword [edx + 8], eax
mov eax, 0xfffffffe
mov byte [edx + 1], ch
inc ebx
mov byte [edx], cl
mov dword [edx - 8], eax
add edx, 0x14
cmp ebx, esi
jl 0x45d4f0
mov edi, dword [ebp - 0xcc]
lea eax, [ebp - 0xb8]
push eax
push ebx
push 0x444
push dword [0x5a23e8]
call edi
movzx ecx, word [0x55b220]
mov eax, dword [ebp - 0xe0]
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x41f
push dword [0x5a23e8]
call edi
push 0xcf3
call fcn.0041e970
mov ecx, dword [0x5a23e8]
add esp, 4
mov edx, eax
call fcn.00459a60
push 0x45c7c0
push 0xfffffffffffffffc
push dword [0x55a794]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x59f7c8], eax
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret