Function at 0x796ca4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, 0x99b264
xor ecx, ecx
push ebp
push 0x797085
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp + 8]
mov byte [eax - 9], 0
mov eax, dword [edi]
call fcn.00474e44
call fcn.004786f0
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [edi]
call fcn.00474e44
call fcn.004786bc
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jle 0x796d07
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 8]
jl 0x796d23
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jge 0x796d34
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 8]
jle 0x796d34
mov eax, dword [ebp + 8]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.008aef44
mov eax, dword [ebp + 8]
cmp dword [eax - 0x18], 3
jne 0x796da1
mov eax, dword [edi]
mov edx, dword [eax + 0x7c4]
mov eax, dword [edx + 0xd0]
cmp eax, 1
je 0x796d55
cmp eax, 2
jne 0x796da1
cmp byte [edx + 0xf6], 0
je 0x796da1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
sar eax, 1
jns 0x796d6b
adc eax, 0
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x10]
jg 0x796d88
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sar eax, 1
jns 0x796d80
adc eax, 0
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jle 0x796da1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0x14
jle 0x796da1
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x14
jle 0x796da1
mov eax, dword [ebp + 8]
mov byte [eax - 9], 1
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
je 0x796ebe
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x20], edx
mov dword [eax - 0x1c], 0x3ff00000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xe1], 3
mov eax, dword [ebp + 8]
fild dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
test eax, eax
jns 0x796de8
add eax, 3
sar eax, 2
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
fild dword [eax - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test eax, eax
jns 0x796e0d
add eax, 3
sar eax, 2
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00437f78
mov eax, dword [ebp + 8]
fstp qword [eax - 0x30]
wait
mov eax, dword [ebp + 8]
fld qword [eax - 0x30]
mov eax, dword [ebp + 8]
fcomp qword [eax - 0x20]
fnstsw ax
sahf
jbe 0x796e54
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xe1], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
xor edx, edx
call fcn.00604bc8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov edx, dword [edx + 0x48]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov edx, dword [edx + 0x4c]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x34]
call fcn.00600320
jmp 0x796f08
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xe1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
xor edx, edx
call fcn.00604bc8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x34]
mov si, 0xffed
call fcn.00404028
mov eax, dword [ebp + 8]
cmp dword [eax - 0x18], 3
jne 0x797055
mov eax, dword [edi]
mov eax, dword [eax + 0x7c4]
mov ebx, dword [eax + 0xd0]
cmp ebx, 1
je 0x796f36
cmp ebx, 2
je 0x796f36
cmp ebx, 5
jne 0x797055
mov eax, dword [edi]
mov eax, dword [eax + 0x7c4]
cmp byte [eax + 0xf6], 0
je 0x797055
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
cmp eax, dword [edx + 0x48]
jg 0x796f8b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
cmp eax, dword [edx + 0x4c]
jle 0x797055
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x4c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov ecx, dword [edx + 0x48]
pop edx
call fcn.008b8f08
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624ac0
mov byte [eax + 0x30], 0
xor eax, eax
push ebp
push 0x797018
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.007967f0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624ac0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.005d4530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x797022
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov dword [eax + 0xe8], 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xe1], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0xd0]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00624a6c
mov edx, dword [eax + 0x1bc]
pop eax
call fcn.008bcac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79708f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret