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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 8]
test esi, esi
jne 0x6c887f
cmp dword [edi + 0x74], esi
jne 0x6c8874
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x6c8874
mov byte [edi + 0x17], 1
push edi
call fcn.006a14e0
add esp, 4
mov esi, eax
mov ecx, dword [ebx + 4]
push ebp
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x6c8899
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x6c88a8
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebp, dword [edi + eax*4 + 0x98]
mov al, byte [edi + 0x13]
test al, al
jne 0x6c88b7
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x6c88c6
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
inc dword [edi + 0x2c]
dec dword [edi + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, 0x6a
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
push ebx
mov dword [esp + 0x20], eax
call fcn.006c9830
push dword [esp + 0x30]
push dword [esp + 0x44]
push ebx
call fcn.006c9830
mov eax, dword [esp + 0x34]
add esp, 0x18
mov cl, byte [eax + 0x10]
test cl, 1
je 0x6c8942
mov eax, dword [esp + 0x28]
cmp eax, 0x36
je 0x6c8932
xor ebx, ebx
cmp eax, 0x39
mov eax, 0x6b
setne bl
mov dword [esp + 0x10], eax
lea ebx, [ebx*2 + 0x37]
jmp 0x6c8946
mov eax, 0x6b
mov ebx, 0x38
mov dword [esp + 0x10], eax
jmp 0x6c8946
mov ebx, dword [esp + 0x28]
test cl, 2
je 0x6c8a90
mov edx, dword [esi + 0x74]
mov dword [esp + 0x28], edx
cmp dword [esi + 0x78], edx
jg 0x6c8971
push 0
push 0
push ebp
push 0x33
push esi
call fcn.00655560
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x6c89a0
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, ebx
sub eax, 0x36
je 0x6c89c4
dec eax
je 0x6c89b8
sub eax, 2
jne 0x6c89d7
push dword [esp + 0x38]
push eax
push 0xb
jmp 0x6c89ce
push dword [esp + 0x38]
push dword [esp + 0x28]
push 0x32
jmp 0x6c89ce
push dword [esp + 0x38]
push dword [esp + 0x28]
push 0x33
push esi
call fcn.006a0a60
add esp, 0x10
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x6c89f4
push 0
push dword [esp + 0x18]
push 0
push 0xb
push esi
call fcn.00655560
add esp, 0x14
jmp 0x6c8a27
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x6c8a35
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x6c8a44
mov eax, 0x9b3e04
jmp 0x6c8a4d
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
push dword [esp + 0x38]
mov dword [eax + 8], edx
push dword [esp + 0x28]
push 0x32
push esi
call fcn.006a0a60
add esp, 0x10
cmp ebx, 0x36
je 0x6c8a6d
cmp ebx, 0x39
jne 0x6c8a90
mov eax, dword [esi]
mov ecx, dword [esi + 0x74]
dec ecx
cmp byte [eax + 0x57], 0
je 0x6c8a80
mov eax, 0x9b3e04
jmp 0x6c8a89
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
push 0xffffffffffffffff
push 0x6d4463
push 0
push dword [esp + 0x24]
push 0
push 0x75
push esi
call fcn.006a0b20
mov edx, dword [esi + 0x74]
add esp, 0x1c
mov dword [esp + 0x28], edx
cmp dword [esi + 0x78], edx
jg 0x6c8ace
push ebp
push 0
push dword [esp + 0x20]
push 0x39
push esi
call fcn.00655560
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x6c8afd
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x39
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x10]
cmp ebx, 0x39
jne 0x6c8b0d
cmp edx, 0x6a
je 0x6c8b17
jmp 0x6c8b6f
cmp ebx, 0x37
jne 0x6c8b6f
cmp edx, 0x6b
jne 0x6c8b6f
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x6c8b34
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push ebx
push esi
call fcn.00655560
add esp, 0x14
jmp 0x6c8b6b
lea eax, [ecx + 1]
xor edx, edx
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov byte [eax + ecx*4], bl
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x6c8b89
push ebp
push ebp
push dword [esp + 0x38]
push edx
push esi
call fcn.00655560
add esp, 0x14
jmp 0x6c8bbb
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], ebp
lea ecx, [eax + ecx*4]
xor eax, eax
mov dword [ecx + 0x10], 0
mov word [ecx + 2], ax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov byte [ecx + 1], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x6c8bc9
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x6c8bd8
mov eax, 0x9b3e04
jmp 0x6c8be1
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x6c8c05
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push ebx
push esi
call fcn.00655560
mov ebx, dword [esp + 0x38]
add esp, 0x14
jmp 0x6c8c3c
lea eax, [ecx + 1]
xor edx, edx
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
mov ebx, dword [esp + 0x24]
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push edi
call fcn.0067cd40
mov edx, eax
add esp, 8
test edx, edx
jne 0x6c8c57
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x6c8c6d
push edx
push 0xfffffffffffffffe
push eax
call fcn.00642330
add esp, 0xc
jmp 0x6c8c7f
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xfe
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x6c8c96
lea ecx, [eax + eax*4]
mov edx, pe_nt_image_headers32
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x6c8cb4
push edx
push esi
push ecx
call fcn.00667600
add esp, 0xc
jmp 0x6c8cbd
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test ebp, ebp
je 0x6c8cd5
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x6c8cd5
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebp
inc byte [edi + 0x13]
pop ebp
test ebx, ebx
je 0x6c8cee
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x6c8cee
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
pop edi
pop esi
pop ebx
add esp, 0x10
ret