Function at 0x404930
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cce00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046d46c
call fcn.0046d46c
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
push 1
push 0x80
push dword [ebx + 0x20]
call edi
push esi
push 0
push 0x80
push dword [ebx + 0x20]
call edi
push 0
push 0x80
push 0
mov ecx, ebx
call fcn.0046a6af
mov edx, 0x8e
lea ecx, [ebp - 0x34]
call fcn.00404050
mov dword [ebp - 4], 0
mov ecx, ebx
push dword [eax]
call fcn.0046aaae
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4049e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x20]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x20]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x40
push esi
cdq
push edi
push ecx
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
lahf
test ah, 0x44
jp 0x404aa2
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd0], xmm0
movsd xmm0, qword [ebx + 0xd0]
mulsd xmm0, qword [0x626080]
cvttsd2si eax, xmm0
push eax
push dword [ebp - 0x18]
lea eax, [ebx + 0xd8]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 2
mov ecx, ebx
lea esi, [ebx + 0xf0]
call fcn.0046a0de
test esi, esi
jne 0x404ae4
xor ecx, ecx
jmp 0x404ae7
mov ecx, dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ecx
push 0x30
push dword [eax + 0x20]
call esi
mov edx, 0x92
lea ecx, [ebp - 0x38]
call fcn.00404050
mov dword [ebp - 4], 1
mov ecx, ebx
push dword [eax]
push 2
call fcn.0046a0de
mov ecx, eax
call fcn.0046aaae
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404b3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x640000
push 0
push 0x401
push dword [ebx + 0x118]
call esi
push 0
push 0
push 0x402
push dword [ebx + 0x118]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret