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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003650c
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1003a060]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x1003a060]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [eax], ecx
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], ecx
mov word [esp + 0xe0], ax
mov dword [esp + 0x128], ecx
cmp ebx, ecx
je 0x799efa
mov eax, ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, cx
jne 0x799e92
sub eax, esi
sar eax, 1
mov ecx, ebx
lea esi, [esp + 0xe0]
call fcn.0078df5b
mov ecx, esi
call fcn.00799514
push 1
lea eax, [esp + 0x28]
push eax
xor eax, eax
mov ecx, esi
mov dword [esp + 0x2c], 0x25
call fcn.0079173d
cmp eax, 0xffffffff
je 0x799eda
mov ecx, esi
call fcn.0079802b
cmp dword [esp + 0xf4], 8
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xe0]
jae 0x799ef6
lea eax, [esp + 0xe0]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x20]
push eax
call fcn.00799b43
mov ebx, dword [eax]
and dword [eax], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x128], 1
push dword [esp + 0x1c]
call fcn.0079b3f7
mov edx, dword [esp + 0x18]
pop ecx
push dword [esp + 0x20]
lea eax, [esp + 0x100]
push eax
mov ecx, edi
call fcn.00799c8a
xor edi, edi
mov byte [esp + 0x128], 2
cmp dword [esp + 0xf0], edi
jne 0x799f5d
push ebx
push 0x1000da04
jmp 0x799f8d
cmp dword [esp + 0xf4], 8
mov eax, dword [esp + 0xe0]
jae 0x799f75
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esi]
push 0x1000da2c
push 1
call fcn.00792cad
add esp, 0xc
push ebx
push 0x1000da48
mov eax, dword [esi]
push 1
call fcn.00792cad
add esp, 0xc
cmp dword [esp + 0x10c], edi
jne 0x799fa9
mov eax, 0x1000da68
jmp 0x799fc1
cmp dword [esp + 0x110], 8
mov eax, dword [esp + 0xfc]
jae 0x799fc1
lea eax, [esp + 0xfc]
push eax
mov eax, dword [esi]
xor ebx, ebx
push 0x1000da84
inc ebx
push ebx
call fcn.00792cad
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [esp + 0x98]
push edi
push eax
call fcn.007a3400
xor eax, eax
mov word [esp + 0xd0], ax
lea edi, [esp + 0x90]
add byte [ebx + 0xcc483ab], ch
stosd dword es:[edi], eax
push 0
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xd0], 0x101
mov dword [esp + 0x94], 0xc
mov dword [esp + 0x9c], ebx
call dword [0x10001090]
mov ebx, dword [0x100010ec]
test eax, eax
jne 0x79a076
call ebx
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esi]
push 0x1000daa8
push 2
call fcn.00792cad
or eax, 0xffffffff
add esp, 0xc
and dword [esp + 0xc0], 0xfffffeff
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
jmp 0x79a08c
push 0
push 1
push dword [esp + 0x3c]
call dword [0x1000108c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
or dword [esp + 0x60], 0xffffffff
and dword [esp + 0x68], 0
and dword [esp + 0x6c], 0
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x64], 1
mov byte [esp + 0x128], 3
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], eax
xor eax, eax
cmp dword [ebp + 0x18], 0xfffff973
lea edi, [esp + 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x79a103
call dword [0x1000118c]
test eax, eax
jne 0x79a103
mov eax, 0xe10
cmp dword [ebp + 0x18], eax
jb 0x79a0e8
mov dword [ebp + 0x18], eax
xor edi, edi
inc edi
cmp dword [ebp + 0x18], edi
ja 0x79a0f3
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x18]
imul eax, eax, 0x3e8
mov dword [ebp + 0x18], eax
xor eax, eax
jmp 0x79a10b
xor eax, eax
xor edi, edi
mov dword [ebp + 0x18], eax
inc edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
push eax
mov word [esp + 0x58], 1
call dword [0x1000109c]
test eax, eax
jne 0x79a13d
mov byte [esp + 0x54], al
cmp byte [esp + 0x55], 0
jne 0x79a162
cmp byte [esp + 0x54], 0
je 0x79a158
lea eax, [esp + 0x3c]
push eax
call dword [0x10001170]
jmp 0x79a162
call dword [0x10001174]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov byte [esp + 0x55], 1
cmp dword [esp + 0x10c], ecx
jne 0x79a176
xor eax, eax
jmp 0x79a18e
cmp dword [esp + 0x110], 8
mov eax, dword [esp + 0xfc]
jae 0x79a18e
lea eax, [esp + 0xfc]
cmp dword [esp + 0x14], ecx
je 0x79a1ac
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x79a1ac
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x98]
push edx
push eax
mov eax, dword [esp + 0x7c]
push eax
neg eax
sbb eax, eax
and eax, 0x400
push eax
push edi
push 0
push 0
push dword [esp + 0x44]
push ecx
call dword [0x100010fc]
test eax, eax
je 0x79a471
mov eax, dword [esi]
push 0x1000db34
push edi
call fcn.00792cad
mov eax, dword [esi]
push 0x1000db70
push edi
call fcn.00792cad
mov ecx, dword [esi]
mov eax, dword [ecx]
add esp, 0x10
push 0x1000dba8
call dword [eax + 8]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x64]
call fcn.007998ad
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x79a23a
mov ecx, dword [esi]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x10]
call fcn.0079b827
pop ecx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x78]
call dword [0x10001084]
test eax, eax
je 0x79a25c
mov eax, dword [esp + 0x1c]
cmp eax, 0x103
jne 0x79a314
cmp byte [esp + 0x55], 0
je 0x79a275
cmp byte [esp + 0x54], 0
je 0x79a28e
lea eax, [esp + 0x44]
push eax
call dword [0x10001170]
mov eax, dword [esp + 0x44]
cmp byte [esp + 0x54], 0
je 0x79a29a
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
sbb ecx, dword [esp + 0x40]
jmp 0x79a2ef
call dword [0x10001174]
mov dword [esp + 0x44], eax
jmp 0x79a279
cmp dword [esp + 0x3c], eax
jbe 0x79a2e9
sub eax, dword [esp + 0x3c]
dec eax
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x18], edi
je 0x79a2cb
xor ecx, ecx
cmp edx, ecx
jg 0x79a3bb
jl 0x79a2cb
cmp eax, dword [ebp + 0x18]
ja 0x79a3bb
lea ecx, [esi + 4]
mov edi, dword [ecx]
push edx
push eax
call dword [edi]
test al, al
je 0x79a42d
push 0xa
call dword [0x100010f0]
jmp 0x79a20a
sub eax, dword [esp + 0x3c]
xor ecx, ecx
cmp byte [esp + 0x54], 0
je 0x79a2a7
push edi
push 0x3e8
push ecx
push eax
call fcn.007a4340
push dword [esp + 0x50]
push dword [esp + 0x50]
push edx
push eax
call fcn.007aa4c0
jmp 0x79a2a9
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x64]
call fcn.007998ad
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x79a357
mov ecx, dword [esi]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x10]
call fcn.0079b827
pop ecx
test edi, edi
jns 0x79a31a
cmp edi, 0x8000000a
je 0x79a31a
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
call fcn.007996d8
cmp dword [esp + 0x10], 0
je 0x79a386
mov ecx, dword [esi]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x10]
call fcn.0079b827
pop ecx
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x1000dbe4
call dword [eax + 8]
fild qword [esp + 0x2c]
mov eax, dword [esi]
push ecx
fdiv qword [0x1000de58]
push ecx
fstp qword [esp]
push dword [esp + 0x24]
push 0x1000dc20
push 1
call fcn.00792cad
add esp, 0x14
jmp 0x79a4ce
mov edi, 0x5b4
push edi
push dword [esp + 0x78]
call dword [0x1000117c]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x1000dbe4
call dword [eax + 8]
fild dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
test eax, eax
jns 0x79a3e7
fadd dword [0x1000de50]
fld qword [0x1000de58]
sub esp, 0x10
fdiv st(1), st(0)
mov eax, dword [esi]
fxch st(1)
fstp qword [esp + 8]
fild qword [esp + 0x3c]
fdivrp st(1)
fstp qword [esp]
push 0x1000dc78
push 3
call fcn.00792cad
mov esi, dword [esi]
mov eax, dword [esi]
add esp, 0x18
push dword [esp + 0x14]
mov ecx, esi
push edi
call dword [eax + 0xc]
mov dword [esp + 0x18], 0x800705b4
jmp 0x79a4ce
mov edi, 0x3e3
push edi
push dword [esp + 0x78]
call dword [0x1000117c]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x1000dbe4
call dword [eax + 8]
mov eax, dword [esi]
push 0x1000dd18
push 3
call fcn.00792cad
mov esi, dword [esi]
mov eax, dword [esi]
pop ecx
pop ecx
push dword [esp + 0x14]
mov ecx, esi
push edi
call dword [eax + 0xc]
mov dword [esp + 0x18], 0x800703e3
jmp 0x79a4ce
call ebx
mov edi, eax
push edi
call fcn.00797eb6
mov ebx, eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x128], 4
test ebx, ebx
jne 0x79a492
mov eax, 0x1000805c
push eax
mov eax, dword [esi]
push edi
push 0x1000dd88
push 3
call fcn.00792cad
mov esi, dword [esi]
mov eax, dword [esi]
add esp, 0x10
push dword [esp + 0x14]
mov ecx, esi
push edi
call dword [eax + 0xc]
test edi, edi
jle 0x79a4c3
and edi, 0xffff
or edi, 0x80070000
push ebx
mov dword [esp + 0x1c], edi
call fcn.0079b3f7
pop ecx
push dword [esp + 0x78]
mov esi, dword [0x10001054]
call esi
push dword [esp + 0x74]
call esi
push dword [esp + 0x38]
call esi
cmp dword [esp + 0x68], 0
je 0x79a4f7
push dword [esp + 0x68]
call fcn.0079b827
pop ecx
cmp dword [esp + 0x5c], 0xffffffff
je 0x79a504
push dword [esp + 0x5c]
call esi
push 1
xor edi, edi
lea esi, [esp + 0x100]
call fcn.0078de75
push dword [esp + 0x24]
call fcn.0079b3f7
pop ecx
push 1
lea esi, [esp + 0xe4]
call fcn.0078de75
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0079aa4d
mov esp, ebp
pop ebp
ret 0x18