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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x94]
mov ebp, dword [eax + 0x2c]
mov eax, dword [edi + 0x98]
xor ebx, ebx
or esi, 0xffffffff
cmp eax, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebp
je 0x460c30
cmp eax, 3
je 0x460c30
cmp dword [edi + 0x8c], 2
mov dword [esp + 0x18], ebx
jne 0x460c38
mov dword [esp + 0x18], 1
cmp ebp, ebx
mov dword [esp + 0x1c], ebx
jle 0x460ca6
push ebx
mov ecx, edi
call fcn.00460760
mov ecx, eax
cmp dword [ecx + 0x74], 0
jne 0x460eb7
test byte [ecx + 0x78], 0x10
jne 0x460eb7
cmp dword [ecx + 0x38], 0
mov eax, dword [ecx + 0x64]
mov edi, dword [ecx + 0x68]
mov ebp, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebp
je 0x460d03
mov edx, dword [esp + 0x3c]
or esi, 0xffffffff
cmp dword [esp + 0x18], 0
jne 0x460cff
cmp edi, dword [edx + 4]
jle 0x460df4
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jne 0x460ecb
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.user32.dll_GetClientRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
add edx, 0xfffffffe
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 8]
push ecx
add edx, 2
push edx
add eax, 2
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [ecx], 1
mov dword [edx], 0xffffffff
mov dword [edi + 0xdc], 0
jmp 0x460ed8
cmp ebx, dword [edx]
jl 0x460c97
cmp dword [esp + 0x18], 0
je 0x460dd1
cmp esi, 0xffffffff
je 0x460d2f
lea eax, [edi + ebp]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
sub eax, dword [edx + 4]
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jle 0x460e9f
lea eax, [edi + ebp]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ebp, dword [eax + 4]
sar edi, 1
mov eax, edi
sub eax, ebp
cdq
mov esi, eax
xor esi, edx
xor eax, eax
sub esi, edx
cmp edi, ebp
setl al
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x48]
test eax, eax
mov dword [ecx], eax
je 0x460db8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edx, 0xffffffff
cmp eax, edx
jge 0x460d9f
mov ecx, dword [esp + 0x10]
add eax, 1
push eax
call fcn.00460760
cmp dword [eax + 0x3c], 0
jne 0x460d9f
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
lea ecx, [eax + 6]
push ecx
mov ecx, dword [esp + 0x44]
push ebx
push eax
push edx
call fcn.0043844c
jmp 0x460e9f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
push eax
push ebx
add eax, 0xfffffffa
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
jmp 0x460e99
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
lea edx, [eax + 6]
push edx
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
jmp 0x460e99
cmp esi, 0xffffffff
je 0x460df4
add eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jle 0x460e9f
mov eax, dword [esp + 0x24]
add eax, ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ebp, dword [eax]
sar edi, 1
mov eax, edi
sub eax, ebp
cdq
mov esi, eax
xor esi, edx
xor eax, eax
sub esi, edx
cmp edi, ebp
setl al
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x48]
test eax, eax
mov dword [ecx], eax
je 0x460e81
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edx, 0xffffffff
cmp eax, edx
jge 0x460e6b
mov ecx, dword [esp + 0x10]
lea edi, [eax + 1]
push edi
call fcn.00460760
cmp dword [eax + 0x3c], 0
jne 0x460e6b
push edi
call fcn.00460760
cmp dword [eax + 0x38], 0
jne 0x460e6b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [ebx + 6]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ebx
call fcn.0043844c
jmp 0x460e9f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
push eax
push ebx
push ecx
add ebx, 0xfffffffa
push ebx
push edx
jmp 0x460e99
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 6]
push ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [edx + 0xdc], ecx
mov edi, edx
add ebx, 1
cmp ebx, ebp
mov dword [esp + 0x1c], ebx
jl 0x460c40
jmp 0x460c9b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x460ef1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.user32.dll_SetRectEmpty]
add esp, 0x24
ret 0x14