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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10092014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10093c20]
mov edx, dword [0x10093c24]
push ebx
push esi
push edi
test eax, eax
jne 0x1001d721
test edx, edx
jne 0x1001d721
push 0x1007c83c
call fcn.1001c860
add esp, 4
mov dword [0x10093c20], eax
mov dword [0x10093c24], edx
mov dword [ebp - 0x128], edx
mov ebx, eax
test eax, eax
jne 0x1001d746
test edx, edx
jne 0x1001d746
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b35e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x120], ecx
test ecx, ecx
je 0x1001d7b1
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x1001d769
add dword [esp], 5
retf
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x10c]
mov edi, dword [ebp - 0x128]
cdq
add eax, ebx
mov dword [ebp - 0x120], ecx
adc edx, edi
test ecx, ecx
je 0x1001d83b
test eax, eax
jne 0x1001d7da
test edx, edx
je 0x1001d83b
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x1001d7ed
add dword [esp], 5
retf
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1001d731
xor ecx, ecx
lea edx, [ebp - 0x158]
add eax, ebx
mov dword [ebp - 0x120], edx
adc ecx, edi
test edx, edx
je 0x1001d8c8
test eax, eax
jne 0x1001d867
test ecx, ecx
je 0x1001d8c8
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x1001d87a
add dword [esp], 5
retf
mov eax, dword [ebp - 0x144]
xor ecx, ecx
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edx, eax
add esp, 4
mov dword [ebp - 0x118], edx
test edx, edx
je 0x1001d731
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x13c]
shl eax, 2
push eax
xor eax, eax
add ecx, ebx
adc eax, edi
push eax
push ecx
push edx
call fcn.1001db40
mov eax, dword [ebp - 0x144]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x114], edx
test edx, edx
jne 0x1001d94d
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
jmp 0x1001d9bd
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x134]
add eax, eax
push eax
xor eax, eax
add ecx, ebx
adc eax, edi
push eax
push ecx
push edx
call fcn.1001db40
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call esi
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x110], edx
test edx, edx
jne 0x1001d9ee
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x1001d9bd
push eax
call esi
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1001d9d1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
xor ecx, ebp
mov edx, dword [ebp - 0x120]
pop edi
pop esi
pop ebx
call fcn.1001b35e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x138]
shl eax, 2
push eax
xor eax, eax
add ecx, ebx
adc eax, edi
push eax
push ecx
push edx
call fcn.1001db40
mov esi, dword [ebp - 0x144]
add esp, 0x10
xor edx, edx
test esi, esi
je 0x1001dae1
nop
mov eax, dword [ebp - 0x110]
xor ecx, ecx
mov dword [ebp - 0x120], 0
mov eax, dword [eax + edx*4]
add eax, ebx
adc ecx, edi
cmp dword [ebp - 0x120], 0x1007c8e8
je 0x1001dad8
test eax, eax
jne 0x1001da55
test ecx, ecx
je 0x1001dad8
mov byte [ebp - 0x119], 0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x1001da6f
add dword [esp], 5
retf
inc edx
cmp edx, esi
jb 0x1001da20
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x1001d99d
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call esi
add esp, 4
mov dword [ebp - 0x110], 0
jmp 0x1001d9a3