Function at 0x412b4a
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x594fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.00490040
mov ecx, esi
call fcn.00576b65
push 0x61810c
lea ecx, [esp + 0x18]
call fcn.00575c43
xor ebp, ebp
mov ecx, edi
push ebp
mov dword [esp + 0x2c], ebp
call fcn.00574686
push 0x52f2
lea ecx, [esp + 0x18]
call fcn.00576ee0
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.00420a70
call fcn.00401310
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x412d27
call fcn.00401310
mov ecx, eax
call fcn.00405850
mov edi, eax
cmp edi, ebp
je 0x412d27
mov ecx, edi
call fcn.0041c930
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0041c8b0
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x28], 1
call dword [edx + 0x1c]
test eax, eax
jle 0x412c21
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
je 0x412c15
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [edx + 0x68]
mov eax, dword [eax]
mov edx, dword [esi + 0xe8]
push eax
push ebp
push 0x14a
push edx
call ebx
lea ecx, [esp + 0x18]
call fcn.00575bd5
mov eax, dword [edi]
mov ecx, edi
inc ebp
call dword [eax + 0x1c]
cmp ebp, eax
jl 0x412be2
mov ecx, dword [esi + 0xe8]
push 0
push 0
push 0x146
push ecx
call ebx
test eax, eax
jle 0x412c7e
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x412c87
mov edx, dword [esi + 0xe8]
push eax
push 0xffffffffffffffff
push 0x14d
push edx
call ebx
cmp eax, 0xffffffff
jne 0x412c87
mov eax, dword [esi + 0xe8]
push 0
push 0
push 0x14e
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0
lea ecx, [esi + 0xcc]
call fcn.005895cb
jmp 0x412c87
lea ecx, [esp + 0x10]
call fcn.00575b60
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00413010
push eax
lea ecx, [esi + 0x114]
mov byte [esp + 0x2c], 2
call fcn.00575d0e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00575bd5
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00413200
push eax
lea ecx, [esi + 0x11c]
mov byte [esp + 0x2c], 3
call fcn.00575d0e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00575bd5
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0057594a
mov ecx, esi
call fcn.00412e70
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x412d19
push 0x8d
mov ecx, esi
call fcn.005742aa
test eax, eax
je 0x412d19
push 0
mov ecx, eax
call fcn.005746c8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00575bd5
push 1
push 0
push 0x21
push 0x30
push 0x30
lea ecx, [esi + 0x120]
call fcn.0056e864
call fcn.00401310
call fcn.0058ec69
mov eax, dword [eax + 0xc]
push 0x84
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 0x124]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edx, dword [esi + 0x124]
push 0
push 0
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
push 0x83
mov ecx, esi
mov ebp, eax
call fcn.005742aa
mov edi, eax
test edi, edi
je 0x412da9
mov eax, dword [edi + 0x1c]
push 0
push ebp
push 0x170
push eax
call ebx
mov ecx, ebp
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
mov ecx, edi
call fcn.00574686
mov edx, dword [esi + 0x1c]
push ebp
push 0
push 0x80
push edx
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00575bd5
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret