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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10091014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10092c20]
mov edx, dword [0x10092c24]
push ebx
push esi
push edi
test eax, eax
jne 0x1001c7e1
test edx, edx
jne 0x1001c7e1
push 0x1007b82c
call fcn.1001b930
add esp, 4
mov dword [0x10092c20], eax
mov dword [0x10092c24], edx
mov dword [ebp - 0x128], edx
mov ebx, eax
test eax, eax
jne 0x1001c806
test edx, edx
jne 0x1001c806
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x120], ecx
test ecx, ecx
je 0x1001c871
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x1001c829
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 0x1001c8fb
test eax, eax
jne 0x1001c89a
test edx, edx
je 0x1001c8fb
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x1001c8ad
add dword [esp], 5
retf
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1001c7f1
xor ecx, ecx
lea edx, [ebp - 0x158]
add eax, ebx
mov dword [ebp - 0x120], edx
adc ecx, edi
test edx, edx
je 0x1001c988
test eax, eax
jne 0x1001c927
test ecx, ecx
je 0x1001c988
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x1001c93a
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 0x1001c7f1
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.1001cc00
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 0x1001ca0d
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
jmp 0x1001ca7d
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.1001cc00
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 0x1001caae
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 0x1001ca7d
push eax
call esi
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1001ca91
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.1001a41e
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.1001cc00
mov esi, dword [ebp - 0x144]
add esp, 0x10
xor edx, edx
test esi, esi
je 0x1001cba1
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], 0x1007b8d8
je 0x1001cb98
test eax, eax
jne 0x1001cb15
test ecx, ecx
je 0x1001cb98
mov byte [ebp - 0x119], 0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x1001cb2f
add dword [esp], 5
retf
inc edx
cmp edx, esi
jb 0x1001cae0
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x1001ca5d
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 0x1001ca63