Function at 0x465490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x51cbc0]
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
mov eax, dword [ebp + 8]
push dword [ebx + 4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46556c
mov ecx, dword [ebx + 0x4c]
xor eax, eax
mov dword [ebp - 0x64], eax
test ecx, ecx
jne 0x46558b
cmp byte [ebx + 0x48], al
jne 0x46557e
mov eax, dword [ebx + 0x2c]
lea esi, [ebx + 0x38]
mov edx, dword [eax - 0xc]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x74]
mov dword [ebp - 0x70], eax
lea eax, [ebx + 0x70]
push dword [ebp - 0x70]
push eax
mov eax, dword [ebp + 0x14]
shr eax, 2
not eax
and eax, 1
push eax
push ecx
push dword [ebp + 0x14]
push edx
push dword [ebx + 0x28]
push esi
call fcn.0046d200
add esp, 0x20
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x465573
cmp byte [ebx + 0x48], al
jne 0x4656e1
push dword [ebx + 0x3c]
mov eax, dword [sym.imp.USER32.dll_IsWindow]
call eax
test eax, eax
je 0x46556c
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x46556c
push dword [ebx + 0x74]
push eax
push 0x4cc
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x465956
cmp eax, 1
jne 0x4656e1
jmp 0x4655a9
mov eax, 2
mov dword [ebp - 0x64], eax
jmp 0x4656e1
cmp ecx, 1
jne 0x4656e1
push dword [ebx + 0x38]
mov eax, dword [sym.imp.USER32.dll_IsWindow]
lea esi, [ebx + 0x38]
call eax
test eax, eax
je 0x4656df
test byte [ebp + 0x14], 2
je 0x465618
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push eax
push dword [esi]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x34], 2
jne 0x465618
push 9
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x70], eax
jb 0x465626
mov edi, dword [edi]
mov eax, dword [esi]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], 0
test eax, eax
je 0x4656a1
push eax
call esi
test eax, eax
je 0x4656a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6c]
push eax
push 0xbb8
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x7c], edi
push eax
push 0
push 0x4a
push dword [ebp - 0x74]
mov dword [ebp - 0x6c], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x4656a1
cmp dword [ebp - 0x6c], 0
je 0x4656a1
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x64], 1
call dword [eax + 0x14]
mov al, byte [ebp - 0x64]
jmp 0x465956
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x4656d7
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x3c]
mov dword [ebx + 0x74], eax
call esi
test eax, eax
je 0x4656d7
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push 0x4cc
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [ebp - 0x64]
jmp 0x465956
xor eax, eax
xor cl, cl
mov byte [ebp - 0x5d], cl
cmp eax, 2
je 0x4656f4
cmp byte [ebx + 0x48], cl
je 0x46594b
lea esi, [ebx + 0x58]
push esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x64], 2
mov dword [ebp - 4], 0
jne 0x465714
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x74]
mov byte [ebx + 0x48], 1
push ecx
push dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
call eax
cmp al, 1
jne 0x465783
cmp dword [ebp - 0x74], 0
jne 0x46574a
cmp dword [ebp - 0x6c], 0
je 0x465783
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x70], edx
cmp eax, edx
je 0x465783
mov ecx, dword [ebp - 0x68]
lea ebx, [ebx]
cmp dword [eax], ecx
jne 0x46577c
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x74], ecx
je 0x4657f2
cmp dword [ebp - 0x6c], ecx
je 0x465941
mov ecx, dword [ebp - 0x68]
add eax, 0x20
cmp eax, edx
jne 0x465760
mov byte [ebp - 0x5d], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], edx
cmp eax, edi
je 0x4657c3
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4657b4
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x54]
push eax
call fcn.00417770
mov edx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
cmp dword [ebx + 0x80], eax
je 0x46590a
mov dword [eax], ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call fcn.00405e90
add dword [ebx + 0x7c], 0x20
jmp 0x465917
lea edx, [eax + 0x20]
cmp edx, dword [ebp - 0x70]
je 0x4658bb
lea ecx, [edx + 0x1c]
sub edx, eax
mov dword [ebp - 0x64], ecx
lea edi, [eax + 8]
mov dword [ebp - 0x78], edx
lea esp, [esp]
mov eax, dword [ecx - 0x1c]
add edx, edi
mov dword [edi - 8], eax
mov eax, dword [ecx - 0x18]
mov dword [edi - 4], eax
mov dword [ebp - 0x68], edx
cmp edi, edx
je 0x4658a2
cmp dword [edi + 0x14], 0x10
jb 0x46585f
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x46584f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465974
mov eax, edx
push ecx
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x64]
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0x14], eax
mov dword [ecx - 4], 0
mov dword [ecx], 0xf
mov byte [edx], 0
add ecx, 0x20
add edi, 0x20
mov dword [ebp - 0x64], ecx
lea eax, [ecx - 0x1c]
cmp eax, dword [ebp - 0x70]
je 0x4658bb
mov edx, dword [ebp - 0x78]
jmp 0x465810
mov edi, dword [ebx + 0x7c]
mov ecx, dword [edi - 4]
cmp ecx, 0x10
jb 0x4658f2
mov eax, dword [edi - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x4658e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465974
mov eax, edx
push ecx
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov dword [edi - 8], 0
mov dword [edi - 4], 0xf
mov byte [edi - 0x18], 0
add dword [ebx + 0x7c], 0xffffffe0
jmp 0x465941
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea ecx, [ebx + 0x78]
call fcn.0042a330
cmp dword [ebx + 0x44], 0
jne 0x465939
push 0
push 0x1f4
push 0x64
push dword [ebx + 4]
mov dword [ebx + 0x40], 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
lea ecx, [ebp - 0x5c]
call fcn.0043e650
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [ebp - 0x5d]
cmp byte [ebp + 0x18], 0
setne al
dec al
and al, cl
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.004d55dc
mov esp, ebp
pop ebp
ret 0x14
call fcn.004c98d0
int3