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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x10098e68
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100dbd3c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10065fd0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], edx
jne 0x100660a9
test edx, edx
je 0x100663c5
lea eax, [ebp + 0x1c]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 4], eax
je 0x10066104
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
push 0x33
call fcn.100660c2
mov eax, dword [ebp + 0x58]
cdq
mov ecx, edx
mov edx, dword [ebp - 0x10]
add eax, ebx
lea esi, [ebp - 0x14c]
adc ecx, edx
test esi, esi
mov dword [ebp + 4], esi
je 0x10066175
test eax, eax
jne 0x10066126
test ecx, ecx
je 0x10066175
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
push 0x33
call fcn.10066133
mov ecx, dword [ebp - 0xc4]
xor eax, eax
test ecx, ecx
je 0x100663c7
add ecx, ebx
adc eax, edx
lea edx, [ebp - 0x3c]
test edx, edx
mov dword [ebp + 4], edx
je 0x100661ea
test ecx, ecx
jne 0x1006619b
test eax, eax
je 0x100661ea
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
push 0x33
call fcn.100661a8
mov eax, dword [ebp - 0x28]
lea ecx, [eax*4]
push ecx
call fcn.10074820
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x100663c5
lea edx, [ebp + 0x10]
mov dword [ebp], edx
mov byte [ebp + 4], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
lea ecx, [eax*4]
xor eax, eax
push ecx
mov ecx, dword [ebp + 0x10]
add edx, ebx
adc eax, edi
push eax
push edx
push ecx
call fcn.10065b90
mov edx, dword [ebp - 0x28]
lea eax, [edx + edx]
push eax
call fcn.10074820
add esp, 0x14
cmp eax, esi
mov dword [ebp + 0x18], eax
je 0x1006629e
lea ecx, [ebp + 0x18]
mov dword [ebp + 8], ecx
mov byte [ebp + 0xc], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edx]
push eax
mov eax, dword [ebp + 0x18]
xor edx, edx
add ecx, ebx
adc edx, edi
push edx
push ecx
push eax
call fcn.10065b90
mov ecx, dword [ebp - 0x24]
lea edx, [ecx*4]
push edx
call fcn.10074820
add esp, 0x14
cmp eax, esi
mov dword [ebp + 0x14], eax
jne 0x100662b2
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10065a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10065a00
jmp 0x100663c5
lea eax, [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
lea edx, [ecx*4]
xor ecx, ecx
add eax, ebx
push edx
mov edx, dword [ebp + 0x14]
adc ecx, edi
push ecx
push eax
push edx
call fcn.10065b90
mov al, 0x65
mov dl, 0x64
mov cl, 0x72
mov byte [ebp + 0x60], al
mov byte [ebp + 0x66], al
mov byte [ebp + 0x6a], al
mov byte [ebp + 0x6f], al
mov al, 0x73
add esp, 0x10
cmp dword [ebp - 0x28], 0
mov byte [ebp + 0x5c], 0x4c
mov byte [ebp + 0x5d], dl
mov byte [ebp + 0x5e], cl
mov byte [ebp + 0x5f], 0x47
mov byte [ebp + 0x61], 0x74
mov byte [ebp + 0x62], 0x50
mov byte [ebp + 0x63], cl
mov byte [ebp + 0x64], 0x6f
mov byte [ebp + 0x65], 0x63
mov byte [ebp + 0x67], dl
mov byte [ebp + 0x68], 0x75
mov byte [ebp + 0x69], cl
mov byte [ebp + 0x6b], 0x41
mov byte [ebp + 0x6c], dl
mov byte [ebp + 0x6d], dl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x70], al
mov byte [ebp + 0x71], al
mov byte [ebp + 0x72], 0
jbe 0x10066378
mov edi, edi
lea eax, [ebp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10066346
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + esi*4]
xor edx, edx
add ecx, ebx
adc edx, edi
push edx
push ecx
lea eax, [ebp + 0x5c]
push eax
call fcn.10065c10
add esp, 0x10
test al, al
jne 0x100663e8
add esi, 1
cmp esi, dword [ebp - 0x28]
jb 0x10066340
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10066393
push eax
call fcn.100748e3
add esp, 4
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100663ae
push eax
call fcn.100748e3
add esp, 4
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100663c5
push eax
call fcn.100748e3
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.10074da4
add ebp, 0x78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + esi*2]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + edx*4]
xor edi, edi
add esi, ebx
adc edi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.10065a00
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10065a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10065a00
mov eax, esi
mov edx, edi
jmp 0x100663c9