Function at 0x40b290
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test dword [0x42a31c], 0x200
push ebx
push esi
push edi
mov esi, ecx
mov byte [0x42c798], 0
mov ebx, 0x80
jne 0x40b314
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [ebp - 4], eax
call edi
push eax
push 0x31
call edi
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 dword [ebp - 8], eax
test eax, eax
jne 0x40b2f8
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ebx
push dword [esi + 4]
call edi
push dword [ebp - 8]
push 0
push ebx
push dword [esi + 4]
call edi
test dword [0x42a31c], 0x4000
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x40b38c
push 0x4b2
push dword [esi + 4]
call edi
push 0x4b2
push dword [esi + 4]
mov dword [ebp - 8], eax
call edi
push 0xfffffffffffffff0
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, ebx
push eax
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x4b5
push dword [esi + 4]
call edi
push 0x4b5
push dword [esi + 4]
mov dword [ebp - 8], eax
call edi
push 0xfffffffffffffff0
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, ebx
push eax
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [esi + 0x10]
push 0x4b2
push dword [esi + 4]
call edi
push eax
mov ecx, esi
call fcn.00409fc5
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040ab81
mov eax, dword [esi + 8]
and eax, 3
xor ebx, ebx
sub eax, ebx
je 0x40b431
dec eax
je 0x40b40d
dec eax
je 0x40b3dd
dec eax
jne 0x40b45b
push 0x19
call fcn.004054e7
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040ab48
push 0x1a
jmp 0x40b448
push 0x1a
call fcn.004054e7
pop ecx
push eax
mov ebx, 0x4b4
push ebx
mov ecx, esi
call fcn.0040ab48
push 0
push 0x4b3
mov ecx, esi
call fcn.0040a000
push ebx
mov ecx, esi
call fcn.00409e44
xor ebx, ebx
jmp 0x40b45b
push 0x19
call fcn.004054e7
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040ab48
push ebx
push 0x4b4
mov ecx, esi
call fcn.0040a000
jmp 0x40b45b
push 0x1b
call fcn.004054e7
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040ab48
push 0x1c
call fcn.004054e7
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.0040ab48
cmp dword [esi + 0x38], ebx
je 0x40b4ce
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [esi + 4]
jmp 0x40b477
push ebx
call fcn.0040690b
pop ecx
push 2
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x40b46d
push 5
push dword [esi + 4]
jmp 0x40b494
push ebx
call fcn.00406982
pop ecx
test eax, eax
jne 0x40b47f
push 2
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x40b486
push 5
push dword [esi + 4]
jmp 0x40b4ad
push ebx
call fcn.00405333
pop ecx
push 2
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x40b4a3
test byte [0x42a31c], 8
jne 0x40b56c
mov ecx, esi
call fcn.0040a46c
jmp 0x40b56c
mov eax, dword [esi + 8]
and eax, 0x1c
cmp eax, 4
je 0x40b50a
cmp eax, 8
je 0x40b503
cmp eax, 0xc
je 0x40b4fc
cmp eax, 0x10
je 0x40b4f5
cmp eax, 0x14
jne 0x40b53e
push 0x7f03
push ebx
jmp 0x40b514
push 0x7f04
jmp 0x40b4f2
push 0x7f01
jmp 0x40b4f2
push 0x7f02
jmp 0x40b4f2
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, ebx
je 0x40b53e
push eax
xor ecx, ecx
inc ecx
push ecx
push 0x172
push 0x4b1
push dword [esi + 4]
mov dword [esi + 0x30], ecx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b54e
push ebx
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], ebx
call fcn.0040a000
test byte [0x42a31c], 8
jne 0x40b55e
mov ecx, esi
call fcn.0040a46c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, esi
call fcn.00409f67
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret