Function at 0x4afed0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f601
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb4], edi
mov esi, dword [edi + 4]
lea ebx, [edi + 0x3546c]
mov dword [ebp - 0xb8], ebx
lea eax, [ebx + 0x20]
push dword [ebp - 0xb8]
mov dword [edi + 0x337c8], 0x1d
push eax
push 0x57f3d8
push 0x58c7d0
push 0x58d480
call fcn.00412380
add esp, 0x14
movzx eax, ax
mov ecx, ebx
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0x57ebdc
push esi
call fcn.004d2ae0
push dword [edi + 0x35470]
mov dword [edi + 0x24], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b03a9
mov ebx, dword [sym.imp.USER32.dll_LoadIconA]
push 0xe9
push dword [0x58d488]
mov dword [ebp - 4], 0
call ebx
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [edi + 0x354a4]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
call edi
push esi
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
call esi
push 0xe8
push dword [0x58d488]
call ebx
mov edx, dword [ebp - 0xb4]
mov ebx, eax
push ebx
push 0xffffffffffffffff
push dword [edx + 0x354a4]
call edi
push ebx
call esi
movaps xmm0, xmmword [0x54add0]
xor ecx, ecx
movups xmmword [ebp - 0xb0], xmm0
test eax, eax
movaps xmm0, xmmword [0x54adf0]
movups xmmword [ebp - 0xa0], xmm0
cmovne ebx, ecx
movaps xmm0, xmmword [0x54adb0]
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0xd0], ebx
movaps xmm0, xmmword [0x548890]
movups xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [0x54adc0]
movups xmmword [ebp - 0x70], xmm0
movaps xmm0, xmmword [0x548890]
movups xmmword [ebp - 0x60], xmm0
movaps xmm0, xmmword [0x54ade0]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x548890]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x54ae00]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x5488d0]
movups xmmword [ebp - 0x20], xmm0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4b0067
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc4], esi
mov byte [ebp - 4], 1
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4b008e
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], eax
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0xc0], eax
je 0x4b010e
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x4b00e6
cmp dword [esi - 8], 0
jl 0x4b03c5
mov dword [esi - 0xc], 0
mov byte [esi], 0
jmp 0x4b010e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b00fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc4], esi
cmp dword [edi - 0xc], 0
lea edx, [edi - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0xc0], eax
je 0x4b0166
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x4b013e
cmp dword [edi - 8], 0
jl 0x4b03c5
mov dword [edi - 0xc], 0
mov byte [edi], 0
jmp 0x4b0166
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b0152
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax - 4]
mov dword [ebp - 0xc0], ecx
test ecx, ecx
js 0x4b01a6
push 0
push ecx
call fcn.00406330
add esp, 8
test eax, eax
je 0x4b01a0
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xc4]
push eax
call fcn.00406b50
mov esi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
mov dword [ebp - 0xc0], ecx
test ecx, ecx
js 0x4b01df
push 0
push ecx
call fcn.00406330
add esp, 8
test eax, eax
je 0x4b01d9
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00406b50
mov edi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xbc]
push dword [eax + 0x14]
lea ecx, [eax + 4]
push dword [eax + 0x10]
push dword [eax + 0xc]
push edi
push ecx
mov ecx, dword [ebp - 0xb8]
push esi
push dword [eax - 8]
call fcn.004149b0
mov ecx, dword [ebp - 0xcc]
add dword [ebp - 0xbc], 0x20
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, 5
jb 0x4b00b6
mov ecx, dword [ebp - 0xb4]
push dword [ebp - 0xd0]
mov eax, dword [ecx + 0x35470]
mov dword [ebp - 0xb8], eax
lea eax, [ecx + 0x74]
push eax
push 0x57f440
push 0x58c7d0
push 0x58d480
call fcn.00412380
mov ecx, dword [ebp - 0xb4]
add esp, 0x14
movzx eax, ax
push 0
push eax
push 0
push 0
push 0x56800000
push 0
push 0x57ebdc
push dword [ebp - 0xb8]
lea ecx, [ecx + 0x54]
call fcn.004d2ae0
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x58]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b0367
mov eax, dword [0x58d488]
push 0
push 0x32
mov dword [ebp - 0xb8], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0xd0
push dword [ebp - 0xb8]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0xb4]
push dword [edx + 0x58]
mov dword [edx + 0x78], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b02ed
mov ecx, dword [ebp - 0xb4]
push 1
lea eax, [ecx + 0x80]
push eax
push dword [ecx + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov eax, dword [eax + 0x58]
push eax
mov dword [ebp - 0xb8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b0367
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xd8], 1
lea ecx, [ecx + 0x35490]
mov dword [ebp - 0xe0], 0x12c
mov dword [ebp - 0xdc], 0x16
mov dword [ebp - 0xd4], 0
call fcn.00414770
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b0385
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4b039e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4b03a9
push ebx
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 - 0x10]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004063a0
int3