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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2cc
mov esi, dword [ebx + 4]
mov ebp, dword [ebx + 0xc]
mov eax, dword [esp + 0x2e0]
mov dword [esp + 8], edx
lea edi, [esp + 0x80]
mov edx, dword [esp + 0x2e4]
mov dword [esp + 0xc], ecx
mov ecx, 0xe
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
xor eax, eax
rep stosd dword es:[edi], eax
movzx eax, byte [ebp + 0x10]
mov edx, dword [edx + 4]
mov edi, dword [esi + 0x14]
lea eax, [eax + eax*8]
lea ecx, [edx + eax*8 + 8]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x10], edi
jbe 0x799788
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x34], eax
test byte [edi + 0xd], 2
je 0x79977f
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx + 0x198]
mov edx, dword [ecx + 0x19c]
and eax, dword [ebp + 8]
and edx, dword [ebp + 0xc]
or edx, eax
jne 0x7997a0
add edi, 0x30
cmp dword [esp + 0x10], edi
ja 0x799760
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
add esp, 0x2cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x14]
mov dword [esp + 0x6c], 0
mov esi, dword [esp + 0x38]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebx
mov ecx, eax
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x74], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x50], eax
cmp ebx, ecx
jae 0x799b40
mov dword [esp + 0x54], ebp
mov ebp, ebx
mov dword [esp + 0x40], 1
mov dword [esp + 8], 0
mov dword [esp + 0x58], edi
jmp 0x7998cd
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x68], eax
xor eax, eax
lea ebx, [esp + 0x64]
mov word [esp + 0xb8], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x799920
sub esp, 8
mov eax, ebx
push dword [esp + 0x24]
push dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
call fcn.007918d0
mov dword [esp + 0x18], eax
add esp, 0x10
mov eax, dword [esp + 8]
test eax, eax
je 0x79993f
movzx ebx, word [esp + 0xb8]
test bx, bx
je 0x799b29
mov eax, dword [esp + 0x40]
test eax, eax
je 0x799965
mov word [esp + 0x80], bx
lea eax, [esp + 0x88]
shl ebx, 4
lea edx, [esp + 0xc0]
sub esp, 4
push ebx
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov dword [esp + 0x40], 0
add ebp, 0x30
cmp dword [esp + 0x44], ebp
jbe 0x799a60
test byte [ebp + 0xd], 4
jne 0x799820
mov eax, dword [esp + 0x34]
cmp dword [ebp + 0x14], eax
jne 0x7998c0
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [esp + 0x12c], esi
mov byte [esp + 0x130], 0x2c
mov dword [esp + 0x128], eax
lea eax, [esp + 0x128]
mov dword [esp + 0x134], 1
mov dword [esp + 0x13c], ebp
mov dword [esp + 0x68], eax
jmp 0x799827
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, ebx
call fcn.00798ee0
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x799874
sub esp, 8
mov eax, ebx
push dword [esp + 0x24]
push dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
call fcn.007996d0
mov dword [esp + 0x18], eax
add esp, 0x10
jmp 0x799874
movzx esi, word [esp + 0x80]
lea eax, [esp + 0x88]
sub esp, 4
mov word [esp + 0xf4], si
mov edi, esi
shl esi, 4
push esi
push eax
lea eax, [esp + 0x104]
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esp + 0x90], ax
add esp, 0x10
test di, di
je 0x7998c0
lea eax, [esp + 0xf0]
mov dword [esp + 0x5c], ebp
add esi, eax
mov ebp, eax
mov dword [esp + 0x4c], esi
test bx, bx
je 0x799a3d
movsx eax, word [ebp + 0x12]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x48], ebp
xor edi, edi
lea ebx, [esp + 0xb8]
mov dword [esp + 0x28], eax
movsx eax, word [ebp + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov ebp, eax
mov eax, dword [esp + 0x28]
movsx edx, word [ebx + 0x12]
add edi, 1
add ebx, 0x10
call fcn.0076b300
movsx edx, word [ebx]
movsx esi, ax
mov eax, dword [esp + 0x2c]
call fcn.0076b300
mov ecx, dword [esp + 0x30]
sub esp, 8
mov edx, dword [ebx - 8]
cwde
or ecx, dword [ebx - 4]
push esi
push eax
or edx, ebp
lea eax, [esp + 0x90]
call fcn.00763050
movzx eax, word [esp + 0xc8]
add esp, 0x10
cmp eax, edi
jg 0x7999ea
mov ebp, dword [esp + 0x48]
add ebp, 0x10
cmp dword [esp + 0x4c], ebp
je 0x799a53
movzx ebx, word [esp + 0xb8]
jmp 0x7999bc
mov ebp, dword [esp + 0x5c]
jmp 0x7998c0
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [ebp + 0x30]
mov ecx, 1
mov esi, dword [esp + 8]
xor ebx, ebx
mov word [ebp + 0x28], cx
mov dword [eax], edi
mov eax, dword [esp + 0x50]
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], bx
mov byte [ebp + 0x11], 0
mov dword [ebp + 0x18], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
test esi, esi
jne 0x799790
cmp word [esp + 0x80], 0
je 0x79977f
xor esi, esi
mov dword [esp + 8], edi
lea ebx, [esp + 0x80]
mov edi, esi
mov esi, dword [esp + 0x38]
jmp 0x799adf
movzx eax, word [esp + 0x80]
add ebx, 0x10
cmp eax, edi
jle 0x799b20
movzx eax, word [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add edi, 1
add eax, 1
mov word [ebp + 0x14], ax
movzx eax, word [ebx + 0x12]
mov word [ebp + 0x16], ax
mov eax, dword [ebx + 8]
mov dword [ebp + 4], edx
mov edx, ebp
mov dword [ebp], eax
mov eax, esi
call fcn.00773d20
test eax, eax
je 0x799ad0
mov dword [esp + 8], eax
jmp 0x799790
mov edi, dword [esp + 8]
jmp 0x79977f
xor eax, eax
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov word [esp + 0x80], ax
jmp 0x799a68
mov eax, 1
xor edx, edx
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x30]
mov dword [eax], edi
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], dx
mov byte [ebp + 0x11], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
jmp 0x799aac