Function at 0x40b190
Capabilities:
Inspect load icon resource

Disassembly:
test dword [0x4303b4], 0x200
push ebx
push esi
push edi
mov esi, ecx
mov byte [0x4312a0], 0
jne 0x40b206
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 ebx, 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 edi, eax
test edi, edi
jne 0x40b1e8
mov edi, ebx
push ebx
push 1
push 0x80
mov ecx, esi
call fcn.00409720
push edi
push 0
push 0x80
mov ecx, esi
call fcn.00409720
test dword [0x4303b4], 0x4000
je 0x40b26e
push 0xfffffffffffffff0
push 0x4b2
mov ecx, esi
call fcn.00409700
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call edi
or eax, 0x80
push eax
push 0xfffffffffffffff0
push 0x4b2
mov ecx, esi
call fcn.00409700
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
call ebx
push 0xfffffffffffffff0
push 0x4b5
mov ecx, esi
call fcn.00409700
push eax
call edi
or eax, 0x80
push eax
push 0xfffffffffffffff0
push 0x4b5
mov ecx, esi
call fcn.00409700
push eax
call ebx
mov eax, dword [esi + 0x10]
push eax
push 0x4b2
mov ecx, esi
call fcn.0040a4c0
mov ecx, dword [esi + 0xc]
push ecx
mov ecx, esi
call fcn.0040a850
mov eax, dword [esi + 8]
and eax, 3
cmp eax, 3
ja case.default.0x40b298
jmp dword [eax*4 + 0x40b49c]
push 0x1b
call fcn.004048c0
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a820
push 0x1c
jmp 0x40b32d
push 0x19
call fcn.004048c0
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a820
push 0
push 0x4b4
mov ecx, esi
call fcn.00409b50
jmp case.default.0x40b298
push 0x1a
call fcn.004048c0
add esp, 4
push eax
push 0x4b4
mov ecx, esi
call fcn.0040a820
push 0
push 0x4b3
mov ecx, esi
call fcn.00409b50
push 0x4b4
mov ecx, esi
call fcn.00409960
jmp case.default.0x40b298
push 0x19
call fcn.004048c0
add esp, 4
push eax
push 0x4b3
mov ecx, esi
call fcn.0040a820
push 0x1a
call fcn.004048c0
add esp, 4
push eax
push 0x4b4
mov ecx, esi
call fcn.0040a820
cmp dword [esi + 0x38], 0
je 0x40b3e5
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push edx
call ebx
mov edi, eax
test edi, edi
je 0x40b374
push edi
call fcn.004062c0
add esp, 4
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x40b360
mov eax, dword [esi + 4]
push 5
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40b3a2
push edi
call fcn.00406340
add esp, 4
test eax, eax
je 0x40b397
mov ecx, dword [esi + 4]
push 5
push ecx
jmp 0x40b39a
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x40b382
mov edx, dword [esi + 4]
push 5
push edx
call ebx
mov edi, eax
test edi, edi
je 0x40b3c4
push edi
call fcn.004046f0
add esp, 4
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x40b3b0
test byte [0x4303b4], 8
jne 0x40b48f
mov ecx, esi
call fcn.0040a010
mov ecx, esi
call fcn.00409a90
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 8]
and eax, 0x1c
add eax, 0xfffffffc
cmp eax, 0x10
ja case.0x40b3fa.5
movzx eax, byte [eax + 0x40b4c4]
jmp dword [eax*4 + 0x40b4ac]
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
jmp 0x40b42a
push 0x7f02
jmp 0x40b428
push 0x7f01
jmp 0x40b428
push 0x7f04
jmp 0x40b428
push 0x7f03
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je case.0x40b3fa.5
push eax
push 1
push 0x172
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], 1
call fcn.00409700
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b46d
push 0
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.00409b50
test byte [0x4303b4], 8
jne 0x40b47d
mov ecx, esi
call fcn.0040a010
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ecx, esi
call fcn.00409a90
pop edi
pop esi
xor eax, eax
pop ebx
ret