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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10089014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1008ac20]
mov edx, dword [0x1008ac24]
push ebx
push esi
push edi
test eax, eax
jne 0x10015361
test edx, edx
jne 0x10015361
push 0x1007482c
call fcn.100144b0
add esp, 4
mov dword [0x1008ac20], eax
mov dword [0x1008ac24], edx
mov dword [ebp - 0x128], edx
mov ebx, eax
test eax, eax
jne 0x10015386
test edx, edx
jne 0x10015386
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012fae
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x120], ecx
test ecx, ecx
je 0x100153f1
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x100153a9
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 0x1001547b
test eax, eax
jne 0x1001541a
test edx, edx
je 0x1001547b
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push 0x33
call 0x1001542d
add dword [esp], 5
retf
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x10015371
xor ecx, ecx
lea edx, [ebp - 0x158]
add eax, ebx
mov dword [ebp - 0x120], edx
adc ecx, edi
test edx, edx
je 0x10015508
test eax, eax
jne 0x100154a7
test ecx, ecx
je 0x10015508
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x100154ba
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 0x10015371
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.10015780
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 0x1001558d
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
jmp 0x100155fd
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.10015780
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 0x1001562e
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 0x100155fd
push eax
call esi
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10015611
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.10012fae
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.10015780
mov esi, dword [ebp - 0x144]
add esp, 0x10
xor edx, edx
test esi, esi
je 0x10015721
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], 0x100748d8
je 0x10015718
test eax, eax
jne 0x10015695
test ecx, ecx
je 0x10015718
mov byte [ebp - 0x119], 0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
push 0x33
call 0x100156af
add dword [esp], 5
retf
inc edx
cmp edx, esi
jb 0x10015660
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x100155dd
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 0x100155e3