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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
add eax, 0xfffffffc
add eax, dword [esp + 0x50]
cmp dword [esp + 0x50], 4
mov dword [esp + 0x44], eax
jbe 0x7c7ccc
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
movzx eax, byte [esi + ebx - 1]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x1c]
push eax
call fcn.007c046c
mov eax, dword [esp + 0x7c]
movzx eax, byte [eax + ebx - 1]
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0x38]
push eax
call fcn.007c046c
mov edi, dword [esp + 0x90]
movzx eax, byte [edi + ebx - 1]
push eax
push dword [esp + 0x90]
lea eax, [esp + 0x54]
push eax
call fcn.007c046c
movzx eax, byte [edi + ebx - 1]
mov edi, dword [esp + 0xa0]
mov edx, dword [eax*4 + 0x7cbba0]
movzx eax, word [edi + ebx*8 - 4]
mov dword [esp + 0x6c], edx
mov ecx, dword [edx*4 + 0x7cbae8]
and ecx, eax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], ecx
call fcn.0069f2c8
movzx eax, byte [esi + ebx - 1]
mov ecx, dword [esp + 0x70]
mov esi, dword [eax*4 + 0x7cbc80]
movzx eax, word [edi + ebx*8 - 2]
mov edx, dword [esi*4 + 0x7cbae8]
and edx, eax
lea eax, [esp + 0x6c]
shl edx, cl
add ecx, esi
or dword [esp + 0x6c], edx
push eax
mov dword [esp + 0x74], ecx
call fcn.0069f2c8
mov esi, dword [esp + 0x9c]
add esp, 0x2c
cmp dword [esp + 0x84], 0
mov al, byte [esi + ebx - 1]
je 0x7c7a90
movzx esi, al
push 0x18
pop ebp
cmp esi, ebp
cmovb ebp, esi
sub esi, ebp
je 0x7c7a6f
mov eax, dword [esi*4 + 0x7cbae8]
and eax, dword [edi + ebx*8 - 8]
mov ecx, dword [esp + 0x48]
shl eax, cl
add ecx, esi
or dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x4c], ecx
call fcn.0069f2c8
pop ecx
mov eax, dword [edi + ebx*8 - 8]
mov ecx, esi
mov esi, dword [esp + 0x70]
shr eax, cl
and eax, dword [ebp*4 + 0x7cbae8]
mov ecx, dword [esp + 0x48]
shl eax, cl
or dword [esp + 0x44], eax
add ecx, ebp
jmp 0x7c7aaa
mov ecx, dword [esp + 0x48]
movzx edx, al
mov eax, dword [edx*4 + 0x7cbae8]
and eax, dword [edi + ebx*8 - 8]
shl eax, cl
or dword [esp + 0x44], eax
add ecx, edx
lea eax, [esp + 0x44]
mov dword [esp + 0x48], ecx
push eax
call fcn.0069f2c8
lea ebp, [ebx - 2]
pop ecx
cmp ebp, ebx
jae 0x7c7c5e
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
sub ecx, eax
sub esi, eax
mov dword [esp + 0x78], ecx
lea edx, [eax + ebp]
mov dword [esp + 0x70], esi
mov dword [esp + 0x10], edx
movzx eax, byte [edx + esi]
movzx edi, byte [edx + ecx]
movzx esi, byte [edx]
push eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x28]
mov ebx, dword [edi*4 + 0x7cbba0]
mov ecx, dword [esi*4 + 0x7cbc80]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x64], ecx
push eax
call fcn.007bbe2c
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.007bbe2c
lea eax, [esp + 0x5c]
push eax
call fcn.0069f2c8
push edi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.007bbe2c
lea eax, [esp + 0x6c]
push eax
call fcn.0069f2c8
mov esi, dword [esp + 0xa8]
add esp, 0x2c
mov edx, dword [ebx*4 + 0x7cbae8]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
movzx eax, word [esi + ebp*8 + 4]
and edx, eax
mov eax, dword [esp + 0x5c]
shl edx, cl
add eax, ebx
or edi, edx
add ecx, ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
cmp eax, 0x18
jbe 0x7c7b90
lea eax, [esp + 0x44]
push eax
call fcn.0069f2c8
mov edi, dword [esp + 0x48]
pop ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x5c]
movzx eax, word [esi + ebp*8 + 6]
mov edx, dword [ebx*4 + 0x7cbae8]
and edx, eax
lea eax, [esp + 0x44]
shl edx, cl
add ecx, ebx
or edi, edx
mov dword [esp + 0x48], ecx
push eax
mov dword [esp + 0x48], edi
call fcn.0069f2c8
cmp dword [esp + 0x88], 0
pop ecx
je 0x7c7c16
mov ebx, dword [esp + 0x60]
push 0x18
pop edi
cmp ebx, edi
cmovb edi, ebx
sub ebx, edi
je 0x7c7bfa
mov eax, dword [ebx*4 + 0x7cbae8]
and eax, dword [esi + ebp*8]
mov ecx, dword [esp + 0x48]
shl eax, cl
add ecx, ebx
or dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x4c], ecx
call fcn.0069f2c8
pop ecx
mov eax, dword [esi + ebp*8]
mov ecx, ebx
shr eax, cl
and eax, dword [edi*4 + 0x7cbae8]
mov ecx, dword [esp + 0x48]
shl eax, cl
or dword [esp + 0x44], eax
add ecx, edi
jmp 0x7c7c30
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx*4 + 0x7cbae8]
and eax, dword [esi + ebp*8]
shl eax, cl
or dword [esp + 0x44], eax
add ecx, edx
lea eax, [esp + 0x44]
mov dword [esp + 0x48], ecx
push eax
call fcn.0069f2c8
mov edx, dword [esp + 0x14]
dec ebp
mov esi, dword [esp + 0x74]
dec edx
pop ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0x80]
jb 0x7c7adf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.007c3794
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.007c3794
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.007c3794
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
bts eax, ecx
mov dword [esp + 0x5c], eax
inc ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push eax
call fcn.0069f2c8
mov ecx, dword [esp + 0x6c]
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
cmp ecx, dword [esp + 0x44]
jae 0x7c7ccc
xor eax, eax
cmp eax, dword [esp + 0x38]
sbb eax, eax
neg eax
sub eax, dword [esp + 0x3c]
add eax, ecx
jne 0x7c7ccf
push 0xffffffffffffffba
pop eax
add esp, 0x48
ret