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

Disassembly:
cmp dword [ecx + 0x188], 0
jne 0x6d86576f
mov eax, dword [ecx + 0x78]
cmp byte [eax + 0xe0], 0
jne 0x6d8657c2
jmp 0x6d8659d4
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x6d865782
xor eax, eax
inc eax
jmp 0x6d8657bc
mov eax, dword [esi]
lea ecx, [ebp + 8]
and dword [ebp + 8], 0
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
js 0x6d8657bc
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov edx, eax
test edx, edx
jle 0x6d86577d
mov ecx, dword [edi + 0x188]
test ecx, ecx
je 0x6d8657ba
lea eax, [edi + 0x170]
push eax
push edx
push dword [ebp + 8]
call ecx
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
sub esp, 0x1c
push ebx
xor eax, eax
xorps xmm0, xmm0
push edi
mov edi, dword [esp + 0x28]
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
test edi, edi
jne 0x6d8657f6
xor eax, eax
inc eax
jmp 0x6d8659cc
cmp dword [ebx + 0x17c], eax
je 0x6d8657ee
cmp dword [ebx + 0x184], eax
je 0x6d8657ee
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
jg 0x6d86581b
xor eax, eax
inc eax
jmp 0x6d8659cb
push ebp
lea ebp, [ebx + 0x170]
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x34], ebp
push esi
push eax
call dword [ebx + 0x184]
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x6d8659c7
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [eax + 0xc]
test eax, eax
js 0x6d8659c7
cmp dword [esp + 0x14], 0
je 0x6d8659c7
mov eax, dword [esp + 0x10]
push esi
push dword [esp + 0x18]
push dword [eax + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
add esp, 0xc
mov dword [eax + 0x14], esi
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [eax + 0x14]
test eax, eax
jne 0x6d865946
mov ecx, dword [esp + 0x20]
test ecx, ecx
jg 0x6d8658b1
jl 0x6d8658a4
mov eax, dword [esp + 0x1c]
test eax, eax
jae 0x6d8658b5
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
test ebp, ebp
jg 0x6d8658d4
jl 0x6d8658c7
mov ebx, dword [esp + 0x24]
test ebx, ebx
jae 0x6d8658d8
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp ebp, ecx
jg 0x6d8658ec
jl 0x6d8658e2
cmp ebx, eax
ja 0x6d8658ec
mov ebx, eax
mov ebp, ecx
add ebx, 1
adc ebp, 0
push 0
push 0x64
push ecx
push eax
call fcn.6d879d30
push 0
push 0x64
push ebp
mov esi, eax
mov dword [esp + 0x2c], edx
push ebx
mov dword [esp + 0x2c], esi
call fcn.6d879d30
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [ecx + 0x18], esi
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
sbb ecx, dword [esp + 0x20]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
jmp 0x6d86598f
cmp eax, 0x40270
jne 0x6d86598f
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x6d86596b
jl 0x6d86595e
cmp dword [esp + 0x1c], 0
jae 0x6d86596b
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov eax, dword [esp + 0x20]
push 0
push 0x64
push eax
push dword [esp + 0x28]
call fcn.6d879d30
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x3c]
test eax, eax
jne 0x6d8659a1
mov eax, dword [esp + 0x10]
or dword [eax + 8], 0x20
mov eax, dword [edi]
push edi
call dword [eax + 0x24]
test eax, eax
jne 0x6d8659b3
mov eax, dword [esp + 0x10]
or dword [eax + 8], 0x10
push ebp
push dword [esp + 0x14]
call dword [ebx + 0x17c]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x6d8659ca
xor eax, eax
inc eax
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x1c
ret 4
sub esp, 0x14
push ebp
mov ebp, ecx
xorps xmm0, xmm0
xor eax, eax
movlpd qword [esp + 8], xmm0
movlpd qword [esp + 0x10], xmm0
cmp dword [ebp + 0x17c], eax
jne 0x6d8659f9
inc eax
jmp 0x6d865b34
push edi
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x6d865a0a
xor eax, eax
inc eax
jmp 0x6d865b33
push ebx
mov ebx, dword [edi + 0x48]
mov dword [edi + 0x48], eax
test ebx, ebx
jne 0x6d865a1d
xor eax, eax
inc eax
jmp 0x6d865b32
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [eax + 0x14]
test eax, eax
js 0x6d865abe
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
jg 0x6d865a54
jl 0x6d865a47
cmp dword [esp + 0x10], ecx
jae 0x6d865a54
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
jg 0x6d865a6b
jl 0x6d865a62
cmp dword [esp + 0x18], ecx
jae 0x6d865a6b
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push esi
push ecx
push 0x64
push eax
push dword [esp + 0x20]
call fcn.6d879d30
mov dword [esp + 0x18], edx
mov esi, eax
xor edx, edx
mov dword [esp + 0x14], esi
push edx
push 0x64
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.6d879d30
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [ebx + 0x18], esi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x18]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], eax
pop esi
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov dword [ebx + 0x14], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x3c]
test eax, eax
jne 0x6d865ad5
or dword [ebx + 8], 0x20
mov eax, dword [edi]
push edi
call dword [eax + 0x24]
test eax, eax
jne 0x6d865ae3
or dword [ebx + 8], 0x10
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x34]
xor edx, edx
movzx ecx, dl
inc edx
test eax, eax
cmove ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 0xc], ecx
je 0x6d865b17
push dword [esp + 0x24]
call fcn.6d877429
mov ecx, dword [esp + 0xc]
lea eax, [ebp + 0x170]
mov byte [ebp + 0x178], cl
push eax
push ebx
call dword [ebp + 0x17c]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
pop ebx
pop edi
pop ebp
add esp, 0x14
ret 4