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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
inc edi
mov dword [ebp - 0x10], ebx
test dword [esi + 8], 0x80000
je 0xc6843
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0xc6843
mov edx, edi
jmp 0xc6845
xor edx, edx
cmp dword [esi], 0
jne 0xc6865
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0xc6865
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0xc686b
lea eax, [esi + 0x39272]
and dword [esi + 0x58], 0
and dword [esi + 0x5c], 0
mov cl, byte [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [ebp - 8], eax
add eax, 0x14cbc
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
shr byte [eax], cl
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0xc6909
cmp dword [esi + 0x64], 0
jne 0xc6909
mov ecx, dword [esi + 0x44]
push 0x78
pop eax
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc68d8
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc68ca
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc68ba
mov ecx, dword [esi + 0x44]
shl edi, cl
or dword [esi + 0x48], edi
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc6909
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc68fb
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc68eb
mov ecx, dword [esi + 0x44]
xor eax, eax
cmp ebx, 4
sete al
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc6942
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6934
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc6924
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
mov dword [ebp - 4], eax
test edx, edx
jne 0xc6a4d
test dword [esi + 8], 0x40000
jne 0xc696d
cmp dword [esi + 0x3c], 0x30
jb 0xc696d
push esi
call fcn.000c55ed
jmp 0xc6973
push esi
call fcn.000c645a
pop ecx
mov ecx, esi
call fcn.000c65e7
cmp dword [esi + 0x3c], 0
mov edx, eax
je 0xc6992
mov ecx, dword [esi + 0x30]
sub ecx, edi
inc ecx
cmp ecx, dword [esi + 0x3c]
jae 0xc6a50
test edx, edx
jne 0xc69b0
mov ecx, dword [ebp - 4]
push esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], ecx
mov dword [esi + 0x44], ebx
call fcn.000c645a
pop ecx
mov ecx, esi
call fcn.000c65e7
push 2
pop ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0xc6bff
mov ecx, dword [esi + 0x44]
push 4
pop edi
cmp eax, edi
jne 0xc6b5d
test ecx, ecx
je 0xc69fc
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc69ee
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc69de
test dword [esi + 8], 0x1000
je 0xc6bff
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x44]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc6a42
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6a34
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc6a24
shl edx, 8
dec edi
jne 0xc6a0c
jmp 0xc6bff
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0xc6992
xor eax, eax
mov dword [esi + 0x30], edi
mov ecx, ebx
shl eax, cl
or eax, dword [ebp - 4]
push 8
mov dword [esi + 0x48], eax
lea eax, [ebx + 2]
pop edi
mov dword [esi + 0x44], eax
cmp eax, edi
jb 0xc6a98
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6a8b
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edi
jae 0xc6a7b
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0xc6ac6
xor eax, eax
mov dword [esi + 0x44], edi
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6ab9
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edi
jae 0xc6aa9
push 2
pop ebx
mov edx, ebx
mov ecx, dword [esi + 0x44]
movzx eax, word [esi + 0x3c]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, edi
jb 0xc6afe
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6af1
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edi
jae 0xc6ae1
xor dword [esi + 0x3c], 0xffff
dec edx
jne 0xc6acb
cmp dword [esi + 0x3c], edx
jbe 0xc69b3
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, edi
jb 0xc6b52
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6b45
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edi
jae 0xc6b35
inc edx
cmp edx, dword [esi + 0x3c]
jb 0xc6b11
jmp 0xc69b3
xor eax, eax
xor edx, edx
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 3]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc6b8f
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6b81
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc6b71
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0xc6bc2
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6bb4
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc6ba4
mov ecx, dword [esi + 0x44]
movzx eax, dx
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0xc6bf6
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0xc6be8
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0xc6bd8
xor edx, 0xffff
dec ebx
jne 0xc6bc2
push 0x240
xor ebx, ebx
lea eax, [esi + 0x8192]
push ebx
push eax
call dword [sym.imp.ntdll.dll_memset]
push 0x40
lea eax, [esi + 0x83d2]
push ebx
push eax
call dword [sym.imp.ntdll.dll_memset]
lea eax, [esi + 0x9273]
mov dword [esi + 0x38], 8
mov dword [esi + 0x28], eax
add esp, 0x18
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
inc dword [esi + 0x64]
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], ebx
mov ebx, dword [esi + 0x30]
sub ebx, eax
je 0xc6cca
cmp dword [esi], 0
je 0xc6c85
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push ebx
push eax
call dword [esi]
add esp, 0xc
test eax, eax
jne 0xc6cca
or eax, 0xffffffff
mov dword [esi + 0x6c], eax
jmp 0xc6ccd
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0xc6cc4
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov edi, dword [eax]
mov eax, dword [esi + 0x74]
sub edi, ecx
cmp ebx, edi
cmovb edi, ebx
add eax, ecx
push edi
push edx
push eax
call dword [sym.imp.ntdll.dll_memcpy]
add dword [esi + 0x8c], edi
add esp, 0xc
sub ebx, edi
je 0xc6cca
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebx
jmp 0xc6cca
add dword [esi + 0x8c], ebx
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret