Function at 0x73164490
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [ebp + 4]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], 0
mov ecx, 1
test ecx, ecx
je 0x73164555
lea edx, [ebp + 4]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
sub ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x731644ec
jmp 0x73164549
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.73166300
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x73164510
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x73164527
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.731663c0
add esp, 8
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 3
jge 0x73164549
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0x28], 0x64
mov eax, dword [ebp - 0xc]
sub eax, edx
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
ja 0x731644d9
mov edx, dword [ebp + 8]
push edx
call fcn.731665a0
add esp, 4
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
jle 0x73164584
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x1c], edx
jmp 0x73164592
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x60], ecx
cmp dword [ebp + 0x10], 0
jle 0x731645c7
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx - 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ecx - 4]
mov dword [ebp - 0x24], eax
jmp 0x731645d5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x68], edx
cmp dword [ebp + 0x10], 0
jle 0x7316460a
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0x2c], ecx
jmp 0x73164618
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0x10], 0
jle 0x7316464d
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax - 4]
mov dword [ebp - 0x34], edx
jmp 0x7316465b
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
sub eax, 8
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x48]
xor edx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 0x18], esp
and esp, 0xfffffff0
push 0x33
call fcn.731646de