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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xffffffe0
sub esp, 0xd0
mov dword [esp + 0xbc], eax
mov eax, dword [0x86c044]
mov dword [esp + 0xcc], eax
xor eax, eax
mov dword [esp + 0xac], edx
test edx, edx
je 0x6bfd08
cmp edx, 1
je 0x6c00bd
mov edi, dword [esp + 0xbc]
mov esi, edx
movzx ecx, word [edi + 4]
add cx, word [edi]
mov word [edi], cx
mov dword [esp + 0xb0], ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call fcn.00402690
lea ecx, [edi + esi*4 - 8]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x9c], ecx
cmp eax, 1
jle 0x6c00b3
mov ecx, dword [esp + 0xb0]
mov ebx, 1
mov esi, 2
xor edx, edx
mov dword [esp + 0xb8], 0
lea eax, [edi + edx]
mov dword [esp + 0xb0], eax
cmp dword [esp + 0xac], esi
jg 0x6bfd28
mov word [edi + ebx*4], cx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], 1
mov dword [esp], ecx
call fcn.00402690
mov edx, ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], esi
mov word [eax], bx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xa8]
lea ecx, [edi + edx*4]
movzx eax, word [ecx]
add word [edi + ebx*4], ax
mov dword [esp + 0xa4], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00402690
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xb8], eax
mov word [ecx], dx
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00402690
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xa4], eax
cmp eax, ecx
je 0x6bfde2
mov eax, dword [esp + 0xb8]
lea edx, [eax*4]
lea eax, [edi + edx]
movzx ecx, word [eax]
cmp dword [esp + 0xac], esi
jg 0x6c00d8
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x94], edx
lea edi, [esi*4]
mov dword [esp + 0x98], edi
add edi, ebx
mov word [edi], cx
mov word [eax], si
lea esi, [ebx + edx + 4]
movzx eax, word [esi]
add word [edi], ax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00402690
mov dword [esp + 0xb0], eax
movzx eax, word [esp + 0xa4]
mov word [esi], ax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00402690
mov edx, dword [esp + 0x94]
mov ecx, eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb4]
cmp ecx, eax
jge 0x6bfde2
mov eax, dword [esp + 0xcc]
sub eax, dword [0x86c044]
jne 0x6c00eb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, word [edi + esi*4]
cmp cx, dx
jae 0x6bffc0
mov eax, dword [esp + 0xb8]
mov word [edi + ebx*4], cx
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00402690
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], esi
mov word [eax], bx
movzx edx, word [edi + ebx*4]
mov eax, dword [esp + 0xb0]
movzx ecx, word [edi + eax*4]
mov eax, dword [esp + 0xb8]
cmp ebx, eax
jle 0x6bff78
lea esi, [edi + eax*4]
movzx eax, word [esi]
cmp ax, cx
jae 0x6bff78
mov eax, dword [esp + 0xac]
mov dword [esp + 4], 0xfffffffd
xor ebx, ebx
mov dword [esp], eax
call fcn.00402690
mov ecx, dword [esp + 0x9c]
mov word [ecx], bx
mov ecx, dword [esp + 0xbc]
lea eax, [ecx + eax*4]
nop
movzx edx, word [eax]
mov ebx, eax
sub eax, 4
movzx edx, word [ecx + edx*4]
add edx, 1
mov word [eax + 4], dx
cmp ecx, ebx
jne 0x6bfe10
mov eax, dword [esp + 0xac]
mov dword [esp + 4], 0xfffffffe
xor edi, edi
xor esi, esi
mov dword [esp], eax
call fcn.00402690
mov dword [esp + 0xb0], 1
mov dword [esp + 0xac], eax
mov ebx, eax
test eax, eax
jns 0x6bfe89
jmp 0x6bff65
mov dword [esp], esi
mov dword [esp + 4], 1
call fcn.00402690
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
mov esi, eax
call fcn.00402690
mov ebx, eax
cmp eax, 0xffffffff
je 0x6bfe98
mov eax, dword [esp + 0xbc]
movzx eax, word [eax + ebx*4]
cmp eax, edi
je 0x6bfe60
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00402710
mov dword [esp + 0xb8], eax
cmp dword [esp + 0xb0], esi
jle 0x6c0030
mov dword [esp + 0xb8], 0
jmp 0x6bfebc
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00402690
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
mov esi, eax
add ecx, edx
mov word [edi + ebx*4], cx
jmp 0x6bfdc3
mov dword [esp + 0xa8], edx
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00402690
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xb0], eax
mov word [edi + ebx*4], dx
cmp dword [esp + 0xac], eax
jg 0x6bfd6c
mov eax, dword [esp + 0xb8]
mov edx, ebx
mov dword [esp + 0xa8], eax
jmp 0x6bf20b
xor esi, esi
mov word [ecx], si
jmp 0x6bfe27
mov eax, dword [esp + 0xbc]
mov edi, 1
mov word [eax], di
jmp 0x6bfd08
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xb0]
jmp 0x6bf1bf
call fcn.00401690