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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4768
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x6510e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x90], esi
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0
je 0x5148fb
lea eax, [ebp - 0xd0]
push eax
call fcn.00517d10
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa0], xmm0
call fcn.004aa8e0
test al, al
jne 0x514383
movsd xmm2, qword [0x61e268]
movsd xmm1, qword [ebp - 0xb0]
movsd xmm0, qword [ebp - 0xd0]
mulsd xmm1, xmm2
mulsd xmm0, xmm2
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0xc8]
mulsd xmm0, xmm2
movsd qword [ebp - 0xb0], xmm1
movsd xmm1, qword [ebp - 0xa8]
mulsd xmm1, xmm2
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 0xc0]
mulsd xmm0, xmm2
movsd qword [ebp - 0xa8], xmm1
movsd xmm1, qword [ebp - 0xa0]
mulsd xmm1, xmm2
addsd xmm1, xmm0
movsd xmm0, qword [0x61e2e8]
movsd qword [ebp - 0x98], xmm0
movsd qword [ebp - 0xa0], xmm1
mov ecx, dword [esi + 4]
call fcn.004ad9e0
test al, al
je 0x5143a0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xd0]
push eax
push 0
call fcn.0047d0c0
movups xmm0, xmmword [esi + 0x3c]
mov ecx, dword [esi + 0x54]
movups xmmword [ebp - 0x80], xmm0
sub dword [ebp - 0x7c], ecx
movd eax, xmm0
sub eax, dword [esi + 0x60]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x58]
add eax, dword [esi + 0x60]
add dword [ebp - 0x78], eax
mov eax, dword [esi + 0x5c]
add eax, ecx
add dword [ebp - 0x74], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x54]
push eax
call fcn.0047b250
mov dword [ebp - 4], 0
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 4]
call fcn.004a7460
test al, al
jne 0x51446e
cmp byte [esi + 0x38], al
je 0x51446e
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x514460
movsd xmm0, qword [ebp - 0xd0]
call fcn.005aacc0
movsd xmm0, qword [ebp - 0xc8]
movzx edi, al
call fcn.005aacc0
movsd xmm0, qword [ebp - 0xc0]
movzx esi, al
shl esi, 8
call fcn.005aacc0
mov edx, dword [ebp - 0x6c]
movzx ecx, al
mov eax, edi
shl eax, 0x10
or eax, ecx
shl ecx, 0x10
or eax, esi
or ecx, esi
mov esi, dword [ebp - 0x90]
or ecx, edi
mov dword [edx + 0x28], eax
mov dword [edx + 0x30], ecx
push 1
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x54]
call fcn.0047d160
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x51448b
mov eax, dword [ecx]
lea edx, [ebp - 0xd0]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x54]
push edx
call dword [eax + 8]
mov edi, dword [esi]
mov eax, dword [edi + 0x124]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 0x64], eax
je 0x5144e8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x5144e8
mov edx, dword [esi + 0x48]
test edx, edx
je 0x5144e8
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5144e8
push 0xcc0020
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [eax]
mov eax, dword [ebp - 0x6c]
push edx
push ecx
push 0
push 0
push dword [eax]
call dword [ebp - 0x64]
mov eax, dword [edi + 0x124]
cmp byte [eax + 0x20], 0
jne 0x5144e8
mov byte [eax + 0x20], 1
mov eax, dword [ebp - 0x54]
mov edx, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x51451e
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51451e
cmp ecx, eax
je 0x51451e
push 0xcc0020
push edx
push edi
push dword [ecx]
push dword [esi + 0x48]
push dword [esi + 0x44]
push edx
push edi
push dword [eax]
call dword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax + 0x174]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x514568
lea ecx, [ebp - 0x50]
push ecx
push dword [eax]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi]
mov edi, dword [ebp - 0x48]
add edi, dword [ebp - 0x4c]
push edi
mov edx, dword [eax + 0x174]
mov eax, dword [edx]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
jmp 0x51456a
xor edi, edi
mov ecx, esi
call fcn.0051a560
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x44]
div edi
mov eax, dword [ebx + 8]
sub ecx, edx
mov dword [ebp - 0x90], eax
mov edx, dword [esi]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 0x94]
test ecx, ecx
je 0x5145c2
cmp ecx, 1
jne 0x514627
mov ecx, dword [edx + 0x8c]
mov eax, dword [edx + 0x88]
dec ecx
and ecx, dword [edx + 0x90]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x10], 0
jne 0x514627
mov eax, dword [ebp - 0x90]
test al, al
jne 0x514627
cmp dword [esi + 0x2c], 8
lea edi, [esi + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x58], edi
mov eax, dword [eax + 0x3c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa0], xmm0
jb 0x5145f2
mov eax, dword [edi]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x174]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax]
sub ecx, dword [eax + 0x40]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xb0]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ecx
push dword [ebp - 0x58]
mov ecx, dword [esi + 8]
push eax
call fcn.0047ce40
jmp 0x51476a
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00516720
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x88]
cmp edx, edi
jne 0x514694
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
cmp edi, dword [ebp - 0x84]
je 0x514678
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edi, dword [ebp - 0x88]
add edi, 8
mov dword [ebp - 0x88], edi
jmp 0x51468e
lea eax, [ebp - 0x60]
push eax
push edi
lea ecx, [ebp - 0x8c]
call fcn.004ae6f0
mov edi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 0x174]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x5c]
cmp dword [eax + 0x80], ecx
jne 0x5146fb
mov eax, dword [eax + 0x74]
mov ecx, edi
mov dword [ebp - 0x68], eax
sub ecx, edx
mov eax, dword [esi]
sar ecx, 3
mov eax, dword [eax + 0x78]
sub eax, dword [ebp - 0x68]
sar eax, 3
cmp ecx, eax
jne 0x5146f9
cmp edx, edi
je 0x51475b
mov ecx, dword [ebp - 0x68]
sub ecx, edx
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx + edx]
jne 0x5146f9
mov eax, dword [edx + 4]
cmp eax, dword [ecx + edx + 4]
jne 0x5146f9
add edx, 8
cmp edx, edi
jne 0x5146e0
jmp 0x51475b
mov eax, dword [esi]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x80], edx
lea eax, [ebp - 0x8c]
mov edi, dword [esi]
lea edx, [edi + 0x74]
cmp edx, eax
je 0x514749
mov ecx, dword [edx]
mov eax, dword [ebp - 0x8c]
mov dword [edx], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov edi, dword [esi]
mov dword [ebp - 0x84], ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51475b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edi + 0x74]
push eax
call edx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004a3cb0
mov ecx, dword [esi]
add ecx, 0x74
mov eax, dword [ecx + 4]
cmp dword [ecx], eax
jne 0x514794
cmp eax, dword [ecx + 8]
je 0x51478e
mov dword [eax], 0
mov dword [eax + 4], 0
add dword [ecx + 4], 8
jmp 0x514794
push eax
call fcn.0051f0d0
cmp dword [esi + 0x54], 0
mov edx, dword [ebp - 0x80]
je 0x5147e7
mov eax, dword [esi + 0x60]
lea ecx, [eax + edx]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], ecx
mov edi, dword [eax + 0xc]
test edi, edi
je 0x5147e7
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5147e7
cmp edi, ecx
je 0x5147e7
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x5c]
push 0xcc0020
push eax
push edx
push dword [edi]
push dword [esi + 0x54]
push dword [ebp - 0x68]
push eax
push edx
push dword [ecx]
call dword [ebp - 0x64]
mov edx, dword [ebp - 0x80]
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x514834
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x74]
sub ecx, edi
add ecx, dword [ebp - 0x7c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x514834
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x514834
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x5c]
je 0x514834
push 0xcc0020
push ecx
push edx
push dword [eax]
mov eax, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x78]
push ecx
push edx
push dword [eax]
call dword [ebp - 0x64]
mov edx, dword [ebp - 0x80]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x514886
mov edi, dword [ebp - 0x78]
sub edi, eax
mov eax, dword [ebp - 0x7c]
add eax, dword [esi + 0x54]
add edi, edx
mov edx, dword [ebp - 0x74]
sub edx, dword [esi + 0x54]
sub edx, dword [esi + 0x5c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x514886
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x514886
cmp ecx, eax
je 0x514886
push 0xcc0020
push dword [ebp - 0x5c]
push edi
push dword [ecx]
push edx
push dword [esi + 0x58]
push dword [ebp - 0x5c]
push edi
push dword [eax]
call dword [ebp - 0x64]
push dword [ebp - 0x90]
mov ecx, esi
push dword [ebp - 0x6c]
call fcn.00516ad0
cmp dword [esi + 0x60], 0
je 0x5148db
mov eax, dword [ebp - 0x74]
sub eax, dword [esi + 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x5148db
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x5148db
cmp edx, edi
je 0x5148db
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
push 0xcc0020
push ecx
push eax
push dword [edx]
push dword [ebp - 0x6c]
push dword [esi + 0x60]
push ecx
push eax
push dword [edi]
call dword [ebp - 0x64]
mov ecx, esi
call fcn.00516200
mov eax, dword [esi]
mov dword [eax + 0xd8], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x5148fb
push eax
call fcn.0047d9c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00581335
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4