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

Disassembly:
push ebp
lea ebp, [esp - 0x154]
sub esp, 0x1d4
mov eax, dword [0x1039f6e0]
xor eax, ebp
mov dword [ebp + 0x150], eax
mov eax, dword [ebp + 0x15c]
push ebx
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x160]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
call 0x6246d0
lea esi, [ebx + 0xb0]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp + 0xc], ecx
movsd dword es:[edi], dword [esi]
call 0x5e6db0
lea eax, [ebp - 0x30]
push eax
push 1
call 0x5b2b90
mov esi, dword [ebp + 0xc]
add esi, 0x78
lea edi, [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
call 0x5b1f70
add esp, 0x14
cmp dword [ebp - 4], 0x7ffffff
je 0x686642
mov esi, dword [ebp]
sub esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 4]
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x10], edi
test esi, esi
je 0x686642
test edi, edi
je 0x686642
mov ecx, dword [ebx + 0x1b4]
test ecx, ecx
je 0x686310
cmp dword [ecx + 8], esi
jne 0x686305
cmp dword [ecx + 4], edi
je 0x686334
test ecx, ecx
je 0x686310
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, ebx
call 0x61fc40
mov edx, dword [eax]
push 0x100
push 8
push edi
push esi
mov ecx, eax
call dword [edx + 0x3c]
mov ecx, eax
call fcn.006ac230
mov dword [ebx + 0x1b4], eax
mov ecx, dword [ebx + 0x1b4]
test ecx, ecx
je 0x68662a
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x68662a
mov ecx, dword [ebx + 0x1b4]
mov eax, dword [ecx]
push 0
call dword [eax + 0x24]
test al, al
je 0x68662a
lea eax, [ebp - 0x40]
push eax
push edi
push esi
xor esi, esi
push esi
push esi
call 0x5b1c90
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x1b4]
call 0x5c1a40
lea esi, [ebp - 4]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 4]
movsd dword es:[edi], dword [esi]
neg eax
push eax
mov eax, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
neg eax
push eax
movsd dword es:[edi], dword [esi]
call fcn.005b1dd0
add esp, 0x2c
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x1b4]
lea ecx, [ebp - 0x60]
call fcn.006ca163
push dword [ebp - 0x44]
lea esi, [ebx + 0xc8]
mov ecx, esi
call 0x594fd5
push dword [ebp - 8]
lea ecx, [ebp + 0x14]
call 0x629660
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x40]
mov ecx, eax
imul eax, dword [ebp + 4]
imul ecx, dword [ebp - 4]
sub dword [ebp + 0x28], eax
sub dword [ebp + 0x24], ecx
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0xc0]
lea eax, [ebp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.006cb33c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x60]
call fcn.006cb96a
cmp dword [ebx + 0x1bc], 0
jne 0x68643b
push 0x30
call fcn.00865239
mov esi, eax
pop ecx
test esi, esi
je 0x686433
push 0x30
push 0
push esi
call fcn.00864dc0
add esp, 0xc
jmp 0x686435
xor esi, esi
mov dword [ebx + 0x1bc], esi
push dword [ebp + 0x10]
mov ecx, dword [ebx + 0x1bc]
push dword [ebp - 0xc]
push dword [ebx + 0x1b4]
call 0x60188b
mov ecx, dword [ebx + 0x1c0]
test ecx, ecx
je 0x686472
cmp edi, dword [ecx + 0x14]
jne 0x686468
call 0x5f3bd0
jmp 0x686492
test ecx, ecx
je 0x686472
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x4c
call fcn.00865239
pop ecx
test eax, eax
je 0x68648a
push 0
push edi
mov ecx, eax
call 0x5e3ae0
jmp 0x68648c
xor eax, eax
mov dword [ebx + 0x1c0], eax
mov ecx, dword [ebx + 0x1c0]
push 1
call 0x5f80c0
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebx + 0x1bc]
mov esi, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
push 0x41
pop ecx
mov word [eax], cx
mov eax, dword [ebx + 0x1c0]
mov edi, dword [eax + 0x48]
push 5
pop ecx
add esi, 0x1c
add edi, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
add eax, 8
push eax
mov eax, 0x140000
push eax
push eax
call 0x5b2420
add esp, 0xc
mov ecx, ebx
call 0x61fc40
push eax
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
add eax, 0x24
push eax
call fcn.005b22e0
mov eax, dword [ebp - 4]
pop ecx
neg eax
pop ecx
mov ecx, dword [ebx + 0x1c0]
mov ecx, dword [ecx + 0x48]
shl eax, 0x10
mov dword [ecx + 0x34], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 0x1c0]
mov ecx, dword [ecx + 0x48]
neg eax
shl eax, 0x10
mov dword [ecx + 0x38], eax
mov ecx, ebx
call 0x61fc40
test eax, eax
je 0x68656d
mov ecx, ebx
call 0x61fc40
mov ecx, eax
call 0x64b160
test al, al
je 0x68656d
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
cmp dword [eax + 0x3c], 1
jne 0x68656d
add eax, 0x24
push eax
call 0x5b2e60
pop ecx
mov eax, dword [ebx + 0x1c0]
mov eax, dword [eax + 0x48]
mov dword [eax + 0x3c], 2
mov eax, dword [ebx + 0x1c0]
mov byte [eax + 0x2c], 1
mov ecx, dword [ebx + 0x1c0]
call 0x5f8ba0
cmp dword [ebx + 0x1c4], 0
jne 0x6865ac
push 0x90
call fcn.007b1126
pop ecx
mov dword [ebx + 0x1c4], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
lea esi, [ebp - 0x80]
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call 0x5b1e20
mov eax, dword [esi]
imul eax, edi
mov dword [esi], eax
mov eax, dword [esi + 4]
imul eax, edi
add esp, 0xc
inc dword [ebp + 0x10]
mov dword [esi + 4], eax
add esi, 8
cmp dword [ebp + 0x10], 4
jl 0x6865b9
push dword [ebx + 0x1c4]
lea eax, [ebp - 0x80]
push dword [ebx + 0x1c0]
push eax
call 0x5c1e90
add esp, 0xc
test eax, eax
je 0x686642
mov eax, dword [ebp - 8]
add eax, 0x30
movzx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push dword [ebx + 0x1c0]
push dword [ebx + 0x1c4]
call fcn.005f9970
jmp 0x686642
mov ecx, dword [ebx + 0x1b4]
test ecx, ecx
je 0x68663b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [ebx + 0x1b4], 0
mov ecx, dword [ebp + 0x150]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.008653fb
add ebp, 0x154
leave
ret 8