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

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xd4]
push edi
test byte [ecx + 0x1c], 8
je 0x4518d0
mov ebx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
shr ebx, 0xc
shr eax, 0xc
and ebx, 7
and eax, 7
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4518d0
mov eax, dword [ecx + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x104b
push dword [esi + 0x1ac]
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
test eax, eax
cmovne ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov eax, dword [ebp]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebp
call edi
test eax, eax
jne 0x451903
mov ecx, ebp
call fcn.00466260
cmp eax, 4
je 0x451903
cmp ebx, 2
sete byte [esp + 0x18]
jne 0x451667
mov edi, dword [esi + 0x94]
cmp dword [edi + 4], 1
jne 0x451624
mov edi, dword [edi + 0xc]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov ebp, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [edi + 0x30]
shr ecx, 1
test cl, 1
je 0x451667
cmp ebp, 0x400
jl 0x451667
cmp eax, 0x300
jl 0x451667
mov ebp, dword [esp + 0x14]
cmp dword [ebp + 0x158], 0xe0000024
jne 0x451667
mov ecx, dword [esi + 4]
mov edx, 0x134
push ecx
mov eax, esp
push ecx
mov dword [eax], 0xd0
mov eax, esp
mov edi, dword [esi + 0x240]
mov dword [eax], edi
call fcn.0041ff90
add esp, 8
cmp eax, 6
jne 0x451903
mov dword [ebp + 0x158], 0
mov eax, dword [esp + 0xd8]
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push 0
push 0x104b
push dword [esi + 0x1ac]
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x68], 4
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
test eax, eax
cmovne ebp, dword [esp + 0x78]
mov eax, dword [ebp]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebp
call edi
test eax, eax
jne 0x451840
cmp ebx, 2
jne 0x451700
mov ebp, dword [ebp + 0x13c]
jmp 0x451706
mov ebp, dword [ebp + 0x140]
test ebp, ebp
je 0x451840
xor edi, edi
cmp dword [esi + 0x20c], edi
jle 0x4516f3
nop dword [eax + eax]
mov eax, dword [esi + 0x204]
lea edx, [ebp + 4]
lea ecx, [eax + edi*4]
call fcn.00410040
test al, al
jne 0x451744
inc edi
cmp edi, dword [esi + 0x20c]
jl 0x451720
mov ebx, dword [esp + 0x10]
jmp 0x4516f3
test edi, edi
js 0x45173e
xor edi, edi
cmp dword [esi + 0x20c], edi
jle 0x45178a
lea eax, [ebp + 4]
nop word [eax + eax]
mov ecx, dword [esi + 0x204]
lea ebx, [edi*4]
add ecx, ebx
mov edx, eax
call fcn.00410040
test al, al
jne 0x451815
inc edi
lea eax, [ebp + 4]
cmp edi, dword [esi + 0x20c]
jl 0x451760
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov edx, 0x2000
cmp ebx, 2
mov dword [esp + 0x9c], 0
mov eax, 0x1000
mov dword [esp + 0xa4], 0xf000
cmove eax, edx
xorps xmm0, xmm0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x94]
push eax
push ecx
push 0x102b
push dword [esi + 0x1ac]
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
movlpd qword [esp + 0xd8], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4516f3
cmp edi, 0xffffffff
je 0x45178a
test edi, edi
js 0x451915
cmp edi, dword [esi + 0x20c]
jge 0x451915
mov eax, dword [esi + 0x208]
mov ecx, dword [ebx + eax]
jmp 0x45178c
mov ebp, dword [esp + 0xd8]
mov ecx, esi
push dword [esp + 0x18]
push dword [ebp + 0xc]
call fcn.00451920
cmp ebx, 1
jne 0x4518df
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x228]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x104c
push dword [esi + 0x1ac]
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 0xc
cmp ebx, 2
jne 0x4518d0
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.00450e60
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc0
ret 0xc
push 0x8000000b
call fcn.00402720
int3