Function at 0x4085c4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test dword [0x42bd98], 0x200
push ebx
push esi
push edi
mov edi, ecx
mov byte [0x42f269], 0
mov esi, 0x80
jne 0x408645
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x14], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x40862c
mov ebx, dword [esp + 0xc]
push dword [esp + 0xc]
mov eax, edi
push 1
push esi
call fcn.00407e5f
push ebx
push 0
push esi
mov eax, edi
call fcn.00407e5f
test dword [0x42bd98], 0x4000
mov ebx, 0x4b2
je 0x4086a8
push 0xfffffffffffffff0
push ebx
mov eax, edi
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, esi
push eax
push 0xfffffffffffffff0
push ebx
mov eax, edi
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push 0x4b5
mov eax, edi
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, esi
push eax
push 0xfffffffffffffff0
push 0x4b5
mov eax, edi
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [edi + 0x10]
mov eax, edi
push ebx
call fcn.00407e47
mov eax, dword [edi + 0xc]
push edi
call fcn.00408f0b
mov eax, dword [edi + 8]
and eax, 3
xor ebx, ebx
sub eax, ebx
je 0x40873c
dec eax
je 0x408718
dec eax
je 0x4086ed
dec eax
jne 0x408764
push 0x19
call fcn.00405280
pop ecx
push eax
push 0x4b3
push edi
call fcn.00408a5c
push 0x1a
jmp 0x408752
push 0x1a
call fcn.00405280
pop ecx
push eax
mov esi, 0x4b4
push esi
push edi
call fcn.00408a5c
push 0x4b3
xor ecx, ecx
mov eax, edi
call fcn.00408941
push esi
call fcn.004083b2
jmp 0x408764
push 0x19
call fcn.00405280
pop ecx
push eax
push 0x4b3
push edi
call fcn.00408a5c
push 0x4b4
xor ecx, ecx
mov eax, edi
call fcn.00408941
jmp 0x408764
push 0x1b
call fcn.00405280
pop ecx
push eax
push 0x4b3
push edi
call fcn.00408a5c
push 0x1c
call fcn.00405280
pop ecx
push eax
push 0x4b4
push edi
call fcn.00408a5c
cmp dword [edi + 0x38], ebx
je 0x4087d6
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [edi + 4]
jmp 0x408780
push ebx
call fcn.00404c9a
pop ecx
push 2
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x408776
push 5
push dword [edi + 4]
jmp 0x40879d
push ebx
call fcn.00404d0f
pop ecx
test eax, eax
jne 0x408788
push 2
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x40878f
push 5
push dword [edi + 4]
jmp 0x4087b6
push ebx
call fcn.004050cd
pop ecx
push 2
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x4087ac
test byte [0x42bd98], 8
jne 0x408876
push edi
call fcn.00408dd9
jmp 0x408876
mov eax, dword [edi + 8]
and eax, 0x1c
cmp eax, 4
je 0x408812
cmp eax, 8
je 0x40880b
cmp eax, 0xc
je 0x408804
cmp eax, 0x10
je 0x4087fd
cmp eax, 0x14
jne 0x408848
push 0x7f03
push ebx
jmp 0x40881c
push 0x7f04
jmp 0x4087fa
push 0x7f01
jmp 0x4087fa
push 0x7f02
jmp 0x4087fa
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebx
je 0x408848
push eax
xor ecx, ecx
inc ecx
push ecx
push 0x172
push 0x4b1
mov eax, edi
mov dword [edi + 0x30], ecx
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x408859
push 0x4b1
xor ecx, ecx
mov eax, edi
mov dword [edi + 0x30], ebx
call fcn.00408941
test byte [0x42bd98], 8
jne 0x408868
push edi
call fcn.00408dd9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push edi
call fcn.00408556
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret