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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x49c014]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
movzx edi, word [eax + 0xc]
add edi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
lea edx, [edi + 0x1c]
mov dword [esp + 0x1c], edx
test esi, esi
je 0x4562eb
xor eax, eax
mov word [ebx + 0x2a2], ax
mov eax, dword [edi + 4]
mov dword [ebx + 0x2c0], eax
mov dword [ebx + 0x60], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x2c4], eax
mov dword [ebx + 0x64], eax
mov eax, dword [edi + 0x10]
test al, 0x10
je 0x4562fa
or eax, 0x10000
mov dword [edi + 0x10], eax
test byte [0x49e5bc], 0x10
jne 0x45630b
and eax, 0xfbffffff
mov dword [edi + 0x10], eax
test esi, esi
je 0x456353
test al, 0x20
je 0x456353
lea eax, [esp + 0x2c]
push eax
push dword [0x49e5b4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x2c]
push eax
push dword [0x49e5b4]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x2c]
lea edx, [edi + 0x1c]
cmp ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmovg ecx, dword [esp + 0x34]
add dword [ebx + 0x4c], ecx
add dword [ebx + 0x54], eax
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
jne 0x45636f
xor ecx, ecx
test dword [edi + 0x10], 0x4000
mov dword [esp + 0x18], ecx
je 0x45636f
movzx ecx, word [edi + 0xe]
mov dword [esp + 0x18], ecx
cmp word [edx], 0
mov esi, dword [0x49e5d4]
mov dword [esp + 0x28], esi
jne 0x4563a1
test dword [edi + 0x10], 0x4000
je 0x4565cb
cmp ecx, dword [esi + 0x74]
jge 0x4565cb
cmp ecx, dword [esi + 0x1f0]
je 0x4565cb
mov ecx, dword [edi + 0x10]
mov edx, 0x42000000
mov dword [esp + 0x14], 4
test cl, 0x20
je 0x45641f
mov dword [esp + 0x14], 0
mov edx, 0x82000000
test cl, 0x40
je 0x4563e9
mov eax, ecx
mov edx, 0x82c00000
and eax, 0x80
mov dword [esp + 0x14], eax
test ecx, 0x400
je 0x4563e9
mov edx, 0x82c80000
mov dword [esp + 0x14], eax
mov eax, ecx
mov ecx, edx
or ecx, 0x800000
and eax, 0x100
mov eax, dword [edi + 0x10]
cmove ecx, edx
mov edx, ecx
or edx, 0x40000
and eax, 0x200
cmove edx, ecx
mov ecx, dword [edi + 0x10]
test ecx, 0x2000
je 0x45641f
or edx, 0x400000
mov dword [esp + 0x10], edx
mov eax, ecx
or dword [esp + 0x10], 0x4000000
and eax, 0x40000
mov eax, dword [esp + 0x10]
cmove eax, edx
mov dword [esp + 0x10], eax
test ecx, 0x4000
je 0x4564d2
cmp dword [esi + 0x1a8], 0
mov dword [esp + 0x1c], 0
je 0x4564a6
mov edx, dword [esi + 0x84]
test edx, edx
je 0x4564a6
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x20], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456470
sub ecx, dword [esp + 0x20]
sar ecx, 1
cmp ecx, 4
jl 0x4564a6
add edx, 0xfffffff8
push 0x48def0
lea eax, [edx + ecx*2]
push eax
call fcn.00465dc8
add esp, 8
test eax, eax
jne 0x4564a6
mov eax, dword [esi + 0x84]
jmp 0x4564b4
cmp dword [0x49e570], 0
jne 0x4564b8
mov eax, dword [0x49e588]
mov dword [esp + 0x1c], eax
test byte [0x49e5bc], 0x40
je 0x4564d2
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x4564d2
mov byte [eax + 0x97d], 1
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.004019b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456576
mov dword [esi + 0x1ac], ebx
test dword [edi + 0x10], 0x1000
jne 0x45650e
mov eax, 0xfff7
and word [esi + 0x14], ax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1b4], 0
test byte [eax + 0x2a], 8
je 0x45652c
mov dword [esi + 0x1b4], 1
push 0
push 0
push edi
mov edx, esi
mov ecx, ebx
call fcn.00455ff0
add esp, 0xc
mov ecx, esi
call fcn.00404d50
mov ecx, esi
test eax, eax
je 0x456566
push 0
mov edx, 1
call fcn.00404f20
add esp, 4
test eax, eax
jne 0x45656d
mov ecx, esi
call fcn.00405120
mov ecx, esi
call fcn.00403cf0
xor esi, esi
mov ecx, dword [esp + 0x28]
call fcn.00401410
mov dword [ebx + 0x2a4], esi
test esi, esi
je 0x45658c
mov eax, dword [esi + 0x1f0]
mov dword [ebx + 0x2ac], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x2a4]
test eax, eax
je 0x4565cb
mov eax, dword [eax + 0x1d8]
test eax, eax
je 0x4565cb
cmp dword [eax + 0x78], 1
jne 0x4565cb
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4565cb
mov eax, dword [ecx + 0x2ac]
mov dword [ecx + 0x2a8], eax
mov eax, dword [edx + 0x18]
mov eax, dword [eax + 0x1f0]
mov dword [ecx + 0x2ac], eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00461195
mov esp, ebp
pop ebp
ret