Function at 0x421c70
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x6387c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 0x44], ebx
push 0
push 0
lea eax, [ebx + 0x48]
push 0x1009
push dword [eax]
mov dword [ebp + 0x40], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [0x6f54ec]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 4], 0
test eax, eax
je 0x421ce8
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
test eax, eax
je 0x421ce8
mov dword [ebx + 0x90], 0
push 1
push 0
push 0x21
push esi
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0xdd
mov dword [ebx + 0x90], eax
push dword [0x6f8c64]
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x90]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0xdb
push dword [0x6f8c64]
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x90]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0xd3
push dword [0x6f8c64]
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x90]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
neg eax
mov byte [ebx + 0x1d8], 1
push 0x6f53f8
sbb edi, edi
not edi
and edi, esi
mov dword [ebp], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x6f50d0
call fcn.0043d350
mov esi, eax
xor ebx, ebx
mov dword [ebp + 0x48], esi
test esi, esi
je 0x4220ec
mov edi, dword [ebp + 0x40]
lea ecx, [ecx]
mov dword [ebp + 0x5c], 0
lea eax, [ebp + 0x5c]
mov byte [ebp - 4], 1
push eax
push ebx
mov ecx, 0x6f50d0
call fcn.0043d280
test al, al
je 0x4220cb
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
jne 0x421dde
jmp 0x4220dc
mov eax, dword [ecx + 0xa4]
shr eax, 8
test al, 1
mov eax, dword [0x6f50f8]
jne 0x421e06
test eax, 0x400
jne 0x421e06
mov eax, dword [ecx]
push ecx
mov byte [ebp - 4], 3
call dword [eax + 8]
jmp 0x4220dc
and eax, 0x1d00
push eax
call fcn.00439020
test al, al
jne 0x421e1e
mov byte [ebp - 4], 4
jmp 0x4220cf
mov ecx, dword [ebp + 0x5c]
call fcn.00439cd0
or esi, 0xffffffff
test eax, eax
je 0x421e40
push eax
mov eax, dword [ebp + 0x44]
push esi
push dword [eax + 0x90]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov esi, eax
mov ecx, dword [ebp + 0x5c]
lea eax, [ebp + 0x4c]
push eax
call fcn.00439ce0
xor eax, eax
mov dword [ebp + 0x60], 4
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x421e86
mov ecx, dword [eax + 0x28]
mov dword [ebp + 0x60], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebp + 0x64], ecx
mov ecx, dword [eax + 0x30]
mov dword [ebp + 0x68], ecx
mov ecx, dword [eax + 0x34]
mov dword [ebp + 0x6c], ecx
mov eax, dword [eax + 0x38]
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 4], 7
mov dword [ebp + 8], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0xc], 0
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x421ef6
mov eax, 0x649aa0
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], 2
test esi, esi
jle 0x421f07
mov dword [ebp + 0x20], esi
lea eax, [ebp + 4]
push eax
push 0
push 0x104d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp + 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x5c]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x421f53
mov dword [ebp + 0x20], 1
jmp 0x421f66
mov ecx, dword [ebp + 0x5c]
call fcn.00439d60
test al, al
je 0x421f6a
mov dword [ebp + 0x20], 0
or dword [ebp + 4], 2
mov dword [ebp + 8], esi
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
cmp dword [ebp + 0x64], 0
mov byte [ebp - 4], 7
mov dword [ebp + 0xc], 1
jne 0x421fab
cmp dword [ebp + 0x60], 1
je 0x421fce
cmp dword [ebp + 0x68], 0
jne 0x421fab
cmp dword [ebp + 0x6c], 0
jne 0x421fab
cmp dword [ebp + 0x70], 0
je 0x421fce
push 0
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x60]
call fcn.00409f30
test eax, eax
je 0x421fce
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x421fc9
mov eax, 0x649aa0
mov dword [ebp + 0x18], eax
jmp 0x421fd5
mov dword [ebp + 0x18], 0x64ef10
lea eax, [ebp + 4]
push eax
push 0
push 0x104c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x5c]
add ecx, 0xac
mov dword [ebp + 4], 1
mov dword [ebp + 0xc], 2
cmp dword [ecx + 4], 0
jne 0x42201c
cmp dword [ecx], 1
je 0x422043
cmp dword [ecx + 8], 0
jne 0x42201c
cmp dword [ecx + 0xc], 0
jne 0x42201c
cmp dword [ecx + 0x10], 0
je 0x422043
push 0
lea eax, [ebp + 0x50]
push eax
call fcn.00409f30
test eax, eax
je 0x422043
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x422037
mov eax, 0x649aa0
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], 1
jmp 0x42204a
mov dword [ebp + 0x18], 0x64ef10
lea eax, [ebp + 4]
push eax
push 0
push 0x104c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
js 0x422079
mov eax, dword [ebp + 0x5c]
mov ecx, edi
mov eax, dword [eax + 0xa4]
shr eax, 5
and eax, 1
push eax
push esi
call fcn.00422160
mov eax, dword [ebp + 0x50]
mov byte [ebp - 4], 8
test eax, eax
je 0x42208d
push eax
call fcn.00446420
add esp, 4
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x54], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x4c]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4220c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 0x48]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x4220dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
mov byte [ebp - 4], 0
cmp ebx, esi
jb 0x421db0
mov edi, dword [ebp]
push 0x6f53f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x40]
push dword [ebx + 0x90]
mov byte [ebx + 0x1d8], 0
push 1
push 0x1003
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, ebx
call fcn.004225b0
push 0
mov ecx, ebx
call fcn.00422c60
mov ecx, ebx
call fcn.004226d0
test edi, edi
je 0x42213b
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x78]
pop ebp
ret