Function at 0x417460
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x10
test eax, eax
push ebx
push ebp
push esi
mov esi, ecx
jne 0x4177f5
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
cmp ebx, 0x84
jne 0x4174e0
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffff0
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x10c], 1
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000000
je 0x4174d3
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
cmp eax, 0x18
mov eax, 2
jl 0x4174d8
mov eax, 1
mov dword [ebp], eax
jmp 0x417747
cmp ebx, 0x138
jne 0x41750b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x10c], 1
call fcn.00417800
mov dword [ebp], eax
jmp 0x417747
cmp ebx, 0x110
jne 0x4176ed
mov edx, dword [esi + 4]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x7f
push edx
mov dword [esi + 0x10c], 1
call edi
test eax, eax
je 0x41753f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [0x42812c]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 4]
push eax
push 0
push 0x80
push ecx
call edi
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000000
je 0x4176bf
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xc9
push eax
call ebx
lea edi, [esi + 0x40]
push eax
mov ecx, edi
call fcn.004039a0
mov ecx, dword [esi + 0x2c]
push ecx
mov ecx, edi
call fcn.00403b70
push 2
push 1
push 2
push 0
mov ecx, edi
call fcn.004028e0
push 0
push 1
mov ecx, edi
call fcn.004028b0
mov edx, dword [esi + 4]
push 0x3f5
push edx
call ebx
lea edi, [esi + 0x84]
push eax
mov ecx, edi
call fcn.004039a0
mov eax, dword [esi + 0x30]
mov ecx, edi
push eax
call fcn.00403b70
push 2
push 1
push 2
push 0
mov ecx, edi
call fcn.004028e0
push 0
push 1
mov ecx, edi
call fcn.004028b0
mov ecx, dword [esi + 4]
push 0x3f6
push ecx
call ebx
lea edi, [esi + 0xc8]
push eax
mov ecx, edi
call fcn.004039a0
mov edx, dword [esi + 0x34]
mov ecx, edi
push edx
call fcn.00403b70
push 0
push 0
push 0
push 0
mov ecx, edi
call fcn.004028e0
push 0
push 1
mov ecx, edi
call fcn.004028b0
mov eax, dword [esi + 0xcc]
lea edi, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [esp + 0x10]
call fcn.004036c0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push 0xd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub eax, edx
push 0xf
sub eax, 0x14
push 5
push eax
lea ecx, [esi + 0x44]
call fcn.00403690
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 1
sub ecx, edx
push 0xd
push 0xf
sub ecx, 0x26
push 5
push ecx
mov ecx, edi
call fcn.00403690
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push 1
sub edx, edi
push 0xd
push 0xf
sub edx, 0x38
push 5
push edx
lea ecx, [esi + 0x88]
call fcn.00403690
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x10c], 0
mov dword [ebp], 1
mov eax, dword [esi + 0x10c]
pop edi
test eax, eax
je 0x41775f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
cmp ebx, 0x111
jne 0x41775f
mov eax, dword [esp + 0x28]
mov dword [esi + 0x10c], 1
and eax, 0xffff
cmp eax, 0xc9
je 0x417730
cmp eax, 0x3f5
je 0x417722
mov dword [esi + 0x10c], 0
jmp 0x417740
mov eax, dword [esi + 4]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x417740
mov ecx, dword [esi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp], 0
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x41775f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
cmp ebx, 0x14
lea ecx, [esi + 0x1c]
jne 0x41777c
mov dword [ebp], 1
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
cmp ebx, 0xf
jne 0x4177b7
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push eax
push edx
push ebx
mov dword [esp + 0x34], 1
call fcn.00417840
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4177f5
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
cmp ebx, 0x318
jne 0x4177f5
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
mov dword [esp + 0x34], 1
call fcn.00417840
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4177f5
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x18