Function at 0x405d25
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
and ebp, 0x40000000
je 0x405d4d
mov ecx, dword [esi + 4]
push ecx
call ebx
jmp 0x405d59
mov edx, dword [esi + 4]
push 4
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [esi + 4]
mov edi, eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, ebp
jne 0x405dd0
test edi, edi
je 0x405d8b
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x405d89
test eax, 0x20000000
je 0x405d8b
xor edi, edi
lea edx, [esp + 0x20]
push 0
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test edi, edi
jne 0x405dc2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x405dfd
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x405dfd
mov edx, dword [esi + 4]
push edx
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
lea edx, [esp + 0x10]
push 2
push edx
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
add eax, ecx
sub ebp, edx
cdq
sub eax, edx
sub ebx, edi
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x405e5a
mov eax, dword [esp + 0x28]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x405e5c
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp edi, eax
jl 0x405e71
mov eax, dword [esp + 0x2c]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x405e73
sub eax, ebp
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x410258]
push 0x7d
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 4]
push eax
push 1
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 4]
push 0x3fb
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [esi + 0x19]
mov ebp, eax
push edi
mov ecx, edi
mov eax, dword [edi]
lea ebx, [edi + 8]
call dword [eax + 4]
push eax
mov ecx, ebx
call fcn.00402cc0
push ebx
push 0xfffffffffffffffc
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
test eax, eax
je 0x405ee2
mov dword [edi + 0x19], eax
mov dword [edi + 4], ebp
mov eax, dword [edi + 0x21]
lea ebp, [edi + 0x21]
test eax, eax
je 0x405ef3
mov ecx, ebp
call fcn.00402b00
mov eax, dword [edi + 0x25]
lea ebx, [edi + 0x25]
test eax, eax
je 0x405f04
mov ecx, ebx
call fcn.00402b00
mov eax, dword [edi + 0x29]
add edi, 0x29
test eax, eax
je 0x405f15
mov ecx, edi
call fcn.00402b00
push ecx
mov ecx, ebp
mov eax, esp
mov dword [eax], 0xb7
call fcn.00402ae0
push ecx
mov ecx, ebx
mov eax, esp
mov dword [eax], 0xb7
call fcn.00402ae0
push ecx
mov ecx, edi
mov eax, esp
mov dword [eax], 0xb7
call fcn.00402ae0
mov ecx, dword [esi + 4]
push 0x3fc
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 0x50]
lea edi, [esi + 0x50]
push edi
mov ecx, edi
mov ebp, eax
lea ebx, [edi + 8]
call dword [edx + 4]
push eax
mov ecx, ebx
call fcn.00402cc0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffffc
push ebp
call ebx
test eax, eax
je 0x405f83
mov dword [edi + 0x19], eax
mov dword [edi + 4], ebp
push 0xb6
push 0xb6
push 0xb6
mov ecx, edi
call fcn.00401c30
mov eax, dword [esi + 4]
push 0x3fe
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 0x87]
add esi, 0x87
push esi
mov ecx, esi
mov ebp, eax
lea edi, [esi + 8]
call dword [edx + 4]
push eax
mov ecx, edi
call fcn.00402cc0
push edi
push 0xfffffffffffffffc
push ebp
call ebx
test eax, eax
je 0x405fd7
mov dword [esi + 0x19], eax
mov dword [esi + 4], ebp
push 0xb9
push 0xb9
push 0xb9
mov ecx, esi
call fcn.00401c30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x10