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

Disassembly:
sub esp, 0xc8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push esi
mov esi, dword [0x105e20a0]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x105e20f4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], esi
push edi
test ecx, ecx
je 0x1012fabe
mov ecx, dword [ecx]
test ecx, ecx
je 0x1012fabe
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edi, eax
mov dword [esp + 0x6c], eax
jmp 0x1012fac4
xor edi, edi
mov dword [esp + 0x6c], edi
test esi, esi
je 0x1012fec6
test edi, edi
je 0x1012fec6
call fcn.100f8800
mov ecx, dword [eax]
lea esi, [eax + 0x18]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.100d5c30
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x1012fb02
mov eax, dword [eax + 0x14]
mov dword [esp + 0x5c], eax
jmp 0x1012fb0a
mov dword [esp + 0x5c], 0
movdqu xmm1, xmmword [edi + 0x30]
mov eax, dword [edi]
mov esi, 1
mov ecx, edi
mov dword [esp + 0x30], 0
movdqa xmm0, xmm1
mov dword [esp + 0x34], 0
psrldq xmm0, 8
mov eax, dword [eax + 4]
psrldq xmm1, 0xc
movd dword [esp + 0x38], xmm0
movd dword [esp + 0x3c], xmm1
mov dword [esp + 0x68], esi
call eax
cmp eax, esi
jl 0x1012feaa
mov dword [esp + 0x58], 0x70
jmp 0x1012fb60
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
test al, al
je 0x1012fe8c
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1012fe8c
mov esi, dword [esp + 0x58]
add esi, 0xffffff90
add esi, eax
mov dword [esp + 0x70], esi
je 0x1012fe8c
cmp byte [esi], 0
je 0x1012fe8c
cmp dword [esi + 8], 0
jl 0x1012fd16
cmp byte [edi + 0x14], 0
je 0x1012fd16
cmp byte [edi + 0x15], 0
je 0x1012fd16
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
cmp eax, 1
je 0x1012fbce
cmp eax, 4
jne 0x1012fd16
cmp dword [esp + 0x5c], 0
je 0x1012fd16
push dword [esi + 8]
mov ecx, edi
call fcn.101c2ba0
mov dword [esp + 0x50], eax
test eax, eax
je 0x1012fd16
cmp byte [eax], 0
je 0x1012fd16
cmp byte [eax + 1], 0
je 0x1012fd16
mov ecx, dword [esp + 0x5c]
lea eax, [esi + 8]
push eax
lea ecx, [ecx + 8]
call fcn.100f0900
mov eax, dword [eax]
mov dword [esp + 0x54], eax
test eax, eax
je 0x1012fd16
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0xc]
movdqu xmm0, xmmword [eax + 0x20]
lea eax, [esp + 0x7c]
push eax
movdqu xmmword [esp + 0x10], xmm0
call fcn.10102830
push eax
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
movdqu xmm0, xmmword [esp + 0xac]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x68]
mov edi, dword [esp + 0x64]
add eax, ecx
movdqu xmmword [esp + 0xbc], xmm0
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xbc], ecx
mov ecx, edi
push dword [eax + 0x368]
call fcn.10132400
push dword [edi + 0xb4]
mov ecx, edi
mov esi, eax
call fcn.10132450
push eax
push dword [esp + 0x7c]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [esp + 0x7c]
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x8c]
push eax
call fcn.10102830
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0xac]
push edx
lea edx, [esp + 0xc0]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xa4]
push edx
push dword [esp + 0x84]
call dword [eax + 4]
push esi
mov esi, dword [esp + 0x7c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
movss xmm0, dword [esi + 4]
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
movsd xmm1, qword [0x105888f8]
andpd xmm0, xmmword [0x105890c0]
comisd xmm1, xmm0
ja 0x1012fe8c
movdqu xmm0, xmmword [esp + 0x30]
sub esp, 0x10
lea ecx, [esi + 0x60]
mov eax, esp
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.10105e30
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1012fd74
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x1012fdf9
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ecx, edi
push dword [eax + 0x368]
call fcn.10132400
push dword [edi + 0xb4]
mov ecx, edi
mov esi, eax
call fcn.10132450
push eax
push dword [esp + 0x7c]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [esp + 0x7c]
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov edx, dword [esp + 0x44]
inc ecx
mov eax, dword [esp + 0x40]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x4c]
inc ecx
add ecx, eax
dec eax
push ecx
lea ecx, [edx - 1]
push ecx
push eax
push dword [esp + 0x88]
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
mov esi, dword [esp + 0x7c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
movdqu xmm0, xmmword [esp + 0x40]
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov byte [esp + 0x87], 0
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x87]
push eax
push esi
push dword [esp + 0x80]
mov esi, dword [esp + 0x94]
push edi
push esi
call fcn.101c5660
test eax, eax
je 0x1012fe8c
cmp eax, 0xfffffffe
je 0x1012fe8c
cmp eax, 0xffffffff
je 0x1012fe73
cmp eax, 0x320
jb 0x1012fe73
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
call fcn.10102830
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cmp eax, 0x64
jl 0x1012fe8c
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10134100
jmp 0x1012fe8c
mov eax, dword [esp + 0x64]
push 0x190
push 0
push 0x415
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi]
mov ecx, edi
inc dword [esp + 0x68]
add dword [esp + 0x58], 0x70
mov eax, dword [eax + 4]
call eax
mov esi, dword [esp + 0x68]
cmp esi, eax
jle 0x1012fb60
mov ecx, dword [0x105e20f4]
test ecx, ecx
je 0x1012fec6
cmp byte [ecx + 0x84], 0
je 0x1012fec6
mov edx, dword [esp + 0x78]
call fcn.10105120
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.1033d458
add esp, 0xc8
ret 4