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

Disassembly:
sub esp, 0x450
mov eax, dword [0x9726c0]
xor eax, esp
mov dword [esp + 0x44c], eax
mov edx, dword [esp + 0x454]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x460]
push ebp
mov ebp, dword [edx]
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
mov edi, dword [ebp + 0x138]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
cmp dword [edi + 0x14], eax
jne 0x796966
mov ecx, dword [esp + 0x46c]
mov eax, dword [ebp + 0x24]
cmp ecx, 3
ja case.default.0x7968a6
jmp dword [ecx*4 + 0x796fd8]
push ebx
push dword [esp + 0x478]
lea ecx, [esp + 0x46c]
push dword [edx + 0x10]
push dword [edx + 0xc]
push ecx
push eax
call fcn.007942a0
add esp, 0x18
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0086aede
add esp, 0x450
ret
push dword [esp + 0x470]
push ebx
push dword [edx + 0xc]
push eax
call fcn.00795f00
add esp, 0x10
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0086aede
add esp, 0x450
ret
push dword [esp + 0x474]
push dword [esp + 0x474]
push dword [edx + 0x10]
push dword [edx + 0xc]
push ebx
push eax
call fcn.007fb4a0
add esp, 0x18
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0086aede
add esp, 0x450
ret
pop edi
mov dword [ebx], eax
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0086aede
add esp, 0x450
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x28]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push esi
test eax, eax
je 0x796986
push eax
push ecx
call fcn.007670d0
add esp, 8
test eax, eax
jne 0x796f84
mov ecx, dword [ebp + 0x138]
lea esi, [edi + 0x18]
mov eax, dword [esp + 0x468]
xor edx, edx
dec eax
div dword [ecx + 0x14]
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esi], ebx
jne 0x7969be
mov dword [esi + 4], ecx
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
jmp 0x796d66
lea ebx, [edi + 0x28]
mov dword [esp + 0x40], ebx
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x7969d2
mov ebp, eax
sub ebp, ecx
jmp 0x7969d6
mov ebp, ecx
sub ebp, eax
cmp ecx, eax
sbb edx, edx
neg edx
cmp dword [ebx], 0
mov dword [esp + 0x28], edx
je 0x796a28
mov edi, dword [edi + 0x2c]
cmp ecx, edi
jb 0x7969f4
mov eax, ecx
sub eax, edi
cmp eax, ebp
jmp 0x7969f8
sub edi, ecx
cmp edi, ebp
sbb eax, eax
mov dword [esp + 0x28], edx
neg eax
test eax, eax
je 0x796a28
mov esi, ebx
mov ebp, dword [esi + 4]
cmp ecx, ebp
jae 0x796a1a
mov edx, 1
sub ebp, ecx
mov dword [esp + 0x28], edx
jmp 0x796a31
xor edx, edx
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x28], edx
mov ebp, eax
jmp 0x796a2d
cmp edx, 1
je 0x796a31
cmp ebp, dword [esi]
jb 0x796a86
mov ebx, dword [esi + 8]
sub ebx, dword [esi + 4]
mov edi, dword [esi]
inc ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
cmp edx, 1
jne 0x796be0
lea eax, [ebx + ebp]
cmp eax, edi
ja 0x796c04
mov ecx, dword [esi + 0xc]
lea eax, [ebx*8]
push eax
lea edi, [ebp*8]
push ecx
lea eax, [ecx + edi]
push eax
call fcn.0086cdf0
push edi
push 0
push dword [esi + 0xc]
call fcn.0086d370
mov ecx, dword [esp + 0x28]
add esp, 0x18
xor ebp, ebp
mov ebx, dword [esp + 0x20]
cmp ecx, dword [esi + 4]
jae 0x796a92
mov dword [esi + 4], ecx
cmp ecx, dword [esi + 8]
jbe 0x796a9a
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
lea edi, [ebp*8]
mov dword [esp + 0x24], edi
cmp dword [eax + edi + 4], 0
jne 0x796e0a
mov eax, dword [esp + 0x2c]
push ecx
push dword [eax + 0x64]
push 0x5c
push dword [eax + 0x68]
lea eax, [esp + 0x6c]
push 0x9447a4
push 0x400
push eax
call fcn.004926a0
mov eax, dword [esi + 0xc]
add eax, 4
add eax, edi
push eax
push dword [esp + 0x38]
call fcn.00779d20
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x796ea2
mov eax, dword [esi + 0xc]
push ebp
mov ebx, dword [edi + eax + 4]
push ebx
call fcn.0077a4c0
mov ebp, dword [esp + 0x34]
lea eax, [ebp + 0x38]
push eax
push ebx
call fcn.0077a570
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x24]
call fcn.0075a710
push dword [esp + 0x5c]
push ebx
call fcn.0077a490
push dword [edi]
push ebx
call fcn.0077a3a0
movups xmm0, xmmword [edi + 0x3c]
movups xmmword [esp + 0x70], xmm0
mov eax, dword [edi + 0x4c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x70]
push eax
push ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], edi
call fcn.0077a3d0
mov ecx, dword [esp + 0x4a8]
mov eax, dword [esp + 0x44]
and ecx, 1
add ecx, 0x40
mov edx, ecx
or edx, 0x400
push dword [eax]
test dword [eax + 0x2e0], 0x80000
mov eax, dword [esp + 0x4c]
push dword [ebp + 0x6c]
cmove edx, ecx
mov ecx, edx
mov eax, dword [eax]
or ecx, 0x10
mov eax, dword [eax + 0x114]
test al, 8
lea eax, [esp + 0x94]
cmove ecx, edx
push ecx
push 0
push eax
push 0
push ebx
call fcn.0077aa60
mov ebp, eax
add esp, 0x4c
test ebp, ebp
je 0x796e12
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
push 0
push ebx
mov dword [ecx + eax + 4], 0
call fcn.0077a6c0
add esp, 8
jmp 0x796e4f
test edx, edx
jne 0x796c04
cmp ebp, edi
jne 0x796c04
mov eax, dword [esp + 0x470]
test eax, eax
je 0x796bf8
cmp eax, 1
jne 0x796c04
mov ebx, dword [esi + 0xc]
cmp dword [ebx], 0
je 0x796cda
mov ebx, dword [esp + 0x2c]
or eax, 0xffffffff
xor edx, edx
mov ecx, dword [ebx + 0x10]
imul ecx, dword [ebx + 0x14]
div ecx
shr eax, 1
cmp ebp, eax
jae 0x796d4a
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x796d37
xor ebx, ebx
test edi, edi
je 0x796d37
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx*8], 0
jne 0x796c89
mov edi, dword [eax + ebx*8 + 4]
mov dword [esp + 0x20], edi
test edi, edi
je 0x796c84
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.0077a180
add esp, 8
test byte [esp + 0x3c], 2
je 0x796c89
mov eax, dword [esi + 0xc]
push 0
push edi
mov dword [eax + ebx*8 + 4], 0
call fcn.0077a6c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x796e43
inc ebx
cmp ebx, dword [esi]
jb 0x796c36
test ebx, ebx
je 0x796d37
mov eax, dword [esi]
lea edi, [ebx*8]
mov ecx, dword [esi + 0xc]
sub eax, ebx
shl eax, 3
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0086cdf0
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub ecx, ebx
push edi
push 0
lea eax, [eax + ecx*8]
push eax
call fcn.0086d370
add dword [esi + 4], ebx
add esp, 0x18
add dword [esi + 8], ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
jmp 0x7969c5
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x796cf8
push 0
push ebx
call fcn.0077a6c0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x796e47
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
lea eax, [eax*8 - 8]
push eax
lea eax, [ecx + 8]
push eax
push ecx
call fcn.0086cdf0
inc dword [esi + 4]
add esp, 0xc
inc dword [esi + 8]
dec ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [eax + ebp*8 + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax + ebp*8], 0
jmp 0x796a8a
mov eax, dword [esi]
mov ebx, dword [esp + 0x20]
add eax, ebp
mov edi, dword [esp + 0x10]
shl eax, 2
mov dword [esi], eax
jmp 0x796d6d
mov edi, dword [esp + 0x10]
lea esi, [ebx + 0x28]
mov ebx, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x24], 0
mov dword [esi + 4], edi
mov dword [esp + 0x30], ebp
mov eax, 4
mov dword [esi], eax
lea ecx, [esi + 0xc]
shl eax, 3
push ecx
push eax
push dword [esp + 0x20]
call fcn.007679f0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x796e4b
cmp dword [esp + 0x28], 1
mov edx, dword [esi + 0xc]
jne 0x796de7
mov eax, dword [esp + 0x30]
lea edi, [ebp*8]
shl eax, 3
push eax
push edx
lea eax, [edx + edi]
push eax
call fcn.0086cdf0
push edi
push 0
push dword [esi + 0xc]
call fcn.0086d370
mov eax, dword [esi]
mov ecx, dword [esp + 0x48]
sub eax, ebp
sub eax, ecx
add ecx, ebp
shl eax, 3
push eax
mov eax, dword [esi + 0xc]
push 0
lea eax, [eax + ecx*8]
push eax
call fcn.0086d370
mov ecx, dword [esp + 0x34]
add esp, 0x24
xor ebp, ebp
jmp 0x796a8a
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
sub eax, ecx
shl eax, 3
push eax
push 0
lea eax, [edx + ecx*8]
push eax
call fcn.0086d370
mov ecx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x796a8a
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x470], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + eax + 4]
jne 0x796e2a
inc dword [ecx + eax]
test byte [esp + 0x478], 1
je 0x796e4f
push 0
push 2
push ebx
call fcn.0077a410
add esp, 0xc
jmp 0x796e4f
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x796e6f
push eax
push dword [esp + 0x1c]
call fcn.00767730
add esp, 8
test eax, eax
jne 0x796f84
test ebp, ebp
jne 0x796fbd
mov eax, dword [esp + 0x468]
xor edx, edx
mov ecx, dword [esp + 0x2c]
dec eax
div dword [ecx + 0x14]
mov eax, dword [esp + 0x470]
mov dword [esp + 0x468], edx
cmp eax, 3
ja case.default.0x796e9b
jmp dword [eax*4 + 0x796fe8]
mov edi, dword [esp + 0x10]
jmp 0x796e4f
mov eax, dword [esp + 0x34]
push eax
push dword [esp + 0x47c]
mov eax, dword [esp + 0x40]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [esp + 0x478]
push eax
push ebx
call fcn.007942a0
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne case.default.0x796e9b
jmp 0x796fbf
mov eax, dword [esp + 0x14]
push dword [eax + 4]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 0xc]
push ebx
call fcn.00795f00
add esp, 0x10
mov ebp, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x796f14
push eax
push dword [esp + 0x1c]
call fcn.007670d0
add esp, 8
test eax, eax
jne 0x796f84
sub edi, dword [esi + 4]
mov eax, dword [esi + 0xc]
add dword [eax + edi*8], 0xffffffff
jne 0x796f68
cmp dword [esp + 0x470], 0
je 0x796f2e
test ebp, ebp
jne 0x796f68
lea eax, [esp + 0x478]
push eax
push ebx
call fcn.0077a180
add esp, 8
test byte [esp + 0x478], 2
je 0x796f68
mov eax, dword [esi + 0xc]
push 0
push ebx
mov dword [eax + edi*8 + 4], 0
call fcn.0077a6c0
add esp, 8
test eax, eax
je 0x796f68
test ebp, ebp
cmove ebp, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x796fbd
push eax
push dword [esp + 0x1c]
call fcn.00767730
add esp, 8
test eax, eax
je 0x796fbd
mov eax, 0xffff8702
jmp 0x796fbf
push dword [esp + 0x478]
mov eax, dword [esp + 0x18]
push dword [eax + 4]
mov eax, dword [esp + 0x40]
push dword [eax + 0x10]
push dword [eax + 0xc]
mov eax, dword [esp + 0x44]
push eax
push ebx
call fcn.007fb4a0
add esp, 0x18
jmp 0x796fbf
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
xor eax, eax
jmp 0x796fbf
mov eax, ebp
mov ecx, dword [esp + 0x45c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0086aede
add esp, 0x450
ret