Function at 0x4a70f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53efd6
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 ebx, ecx
mov dword [ebp - 0x8c], ebx
xor esi, esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 4], esi
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4a7146
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x94], edi
mov eax, dword [ebx + 0x4bd4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x3a464]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x3ae84]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x3cf64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x3fa6c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x3fc70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x3fe74]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x3f4e4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x3f7ec]
lea ebx, [ebp - 0x80]
mov dword [ebp - 0x14], eax
mov eax, 0xa
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], 0x81
mov dword [ebp - 0x84], 0x81
mov dword [ebp - 0x7c], 0x82
mov dword [ebp - 0x78], 0x82
mov dword [ebp - 0x70], 0x83
mov dword [ebp - 0x6c], 0x83
mov dword [ebp - 0x64], 0x86
mov dword [ebp - 0x60], 0x86
mov dword [ebp - 0x58], 0x87
mov dword [ebp - 0x54], 0x87
mov dword [ebp - 0x4c], 0x8e
mov dword [ebp - 0x48], 0x8e
mov dword [ebp - 0x40], 0x8f
mov dword [ebp - 0x3c], 0x8f
mov dword [ebp - 0x34], 0x90
mov dword [ebp - 0x30], 0x90
mov dword [ebp - 0x28], 0x8b
mov dword [ebp - 0x24], 0x8b
mov dword [ebp - 0x1c], 0x8c
mov dword [ebp - 0x18], 0x8c
mov dword [ebp - 0x90], eax
nop
cmp dword [ebx], 0
je 0x4a72ff
mov eax, dword [ebx - 8]
movzx eax, ax
push eax
push dword [0x58d488]
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, eax
mov eax, dword [ebx - 4]
push 0
push eax
mov dword [ebp - 0x98], esi
call fcn.00406330
add esp, 8
test eax, eax
je 0x4a729b
push dword [ebx - 4]
lea ecx, [ebp - 0x94]
push eax
call fcn.00406b50
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
push esi
push 0xffffffffffffffff
push dword [eax + 0x40190]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [ebp - 0x8c]
push eax
push edi
push dword [ebx]
lea ecx, [ecx + 0x400a4]
call fcn.004a5b60
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
xor ecx, ecx
test eax, eax
mov eax, dword [ebx - 4]
cmovne esi, ecx
mov dword [ebp - 0x98], esi
cmp dword [0x58ce58], eax
jne 0x4a72f9
push ecx
push ecx
mov ecx, dword [ebp - 0x8c]
push dword [ebx]
lea ecx, [ecx + 0x400a4]
call fcn.004a6360
mov eax, dword [ebp - 0x90]
add ebx, 0xc
sub eax, 1
mov dword [ebp - 0x90], eax
jne 0x4a7250
mov ebx, dword [ebp - 0x8c]
add ebx, 0x40080
cmp byte [ebx + 0x124], 0
je 0x4a7332
mov dword [ebx + 0x11c], 0
jmp 0x4a7345
cmp dword [ebx + 0x11c], 0x20
je 0x4a735b
mov dword [ebx + 0x11c], 0x20
push 1
mov ecx, ebx
call fcn.004a7690
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a7377
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4a7382
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
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