Function at 0x1015fbba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x102231b1
call fcn.10210210
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x24], ebp
lea ecx, [ebp + 0x74]
call fcn.10003a2e
mov ebx, eax
test ebx, ebx
je 0x1015ffe2
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x34]
test al, al
jne 0x1015ffe2
xor esi, esi
mov dword [esp + 0x3c], esi
and dword [esp + 0x7c], esi
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x18]
test al, al
je 0x1015fc15
push ebx
lea ecx, [esp + 0x40]
call fcn.1000fd16
mov esi, dword [esp + 0x3c]
mov edi, dword [ebp + 0x80]
xor eax, eax
mov ecx, dword [esp + 0x94]
cmp edi, 0x80000000
mov edx, dword [esp + 0x98]
mov ebp, ecx
mov dword [esp + 0x20], edx
cmove edi, eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x7c], 0x80000000
mov dword [esp + 0x38], edx
je 0x1015fcc0
cmp dword [ecx + 0x7c], 0
je 0x1015fcc0
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x2c]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x68]
call fcn.1000e87b
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x24]
and dword [esp + 0x88], 0
and dword [esp + 0x14], 0
mov dword [esp + 0x40], 0x64
lea ecx, [eax + 0x84]
cmp dword [ecx], 0
jbe 0x1015fd56
cmp dword [ecx], 3
jne 0x1015fd44
movzx eax, word [ecx + 4]
movsx ecx, ax
mov eax, dword [esp + 0x48]
imul eax, ecx
mov dword [esp + 0x88], ecx
push 0x64
pop ecx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
inc eax
imul eax, dword [esp + 0x88]
cdq
idiv dword [esp + 0x40]
sub eax, ecx
jmp 0x1015fd4b
push 0
call fcn.1002b1eb
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + 0x94]
cmp dword [ecx], 0
jbe 0x1015fda2
cmp dword [ecx], 3
jne 0x1015fd97
movzx eax, word [ecx + 4]
movsx ecx, ax
mov eax, dword [esp + 0x4c]
imul eax, ecx
mov dword [esp + 0x14], ecx
push 0x64
pop ecx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
inc eax
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x40]
sub eax, ecx
jmp 0x1015fd9e
push 0
call fcn.1002b1eb
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
and edi, 0xf
mov edx, dword [esp + 0x28]
sub eax, edx
add dword [esp + 0x88], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, ebp
add eax, ecx
mov dword [esp + 0x14], eax
sub edi, 0
je 0x1015ff99
dec edi
je 0x1015fec0
dec edi
je 0x1015fe66
dec edi
je 0x1015fe05
dec edi
jne 0x1015ffd2
mov ecx, dword [esp + 0x34]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
jmp 0x1015ff8b
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
dec ecx
add ecx, edx
add edx, dword [esp + 0x88]
add ecx, dword [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x1c]
push ecx
push ecx
mov eax, esp
sub esp, 0x10
and dword [eax], 0
cmp ebp, ebx
mov dword [eax + 4], edi
mov eax, esp
mov edi, dword [esp + 0x48]
cmovg ebx, ebp
cmp dword [esp + 0x54], edi
mov ebp, dword [esp + 0x38]
cmovl edi, dword [esp + 0x54]
cmp edx, ebp
mov dword [eax + 4], ebx
cmovg ebp, edx
mov edx, dword [esp + 0x3c]
cmp ecx, edx
mov dword [eax], ebp
mov dword [eax + 0xc], edi
cmovl edx, ecx
mov dword [eax + 8], edx
jmp 0x1015ffc6
mov ecx, dword [esp + 0x4c]
dec ecx
mov edi, dword [esp + 0x20]
add ecx, ebp
add ebp, eax
add ecx, eax
push ebx
mov ebx, dword [esp + 0x8c]
push ecx
push ecx
mov eax, esp
sub esp, 0x10
and dword [eax + 4], 0
mov dword [eax], ebx
mov eax, esp
mov ebx, dword [esp + 0x34]
cmp ebp, ebx
cmovg ebx, ebp
mov ebp, dword [esp + 0x48]
cmp ecx, ebp
mov dword [eax + 4], ebx
cmovl ebp, ecx
mov ecx, dword [esp + 0x38]
cmp edx, ecx
cmovg ecx, edx
cmp dword [esp + 0x50], edi
mov dword [eax], ecx
cmovl edi, dword [esp + 0x50]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
jmp 0x1015ffc6
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x7c], 0x80000000
je 0x1015ff56
cmp dword [ecx + 0x7c], 0
je 0x1015ff56
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
dec edi
dec ecx
add edi, ebp
add ecx, edx
add edi, eax
mov dword [esp + 0x38], ecx
add ebp, eax
mov ecx, dword [esp + 0x88]
add edx, ecx
add dword [esp + 0x38], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x8c]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], edx
mov eax, dword [edi]
call dword [eax + 0xc4]
test al, al
je 0x1015ffd2
mov ecx, dword [esp + 0x28]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0xc], ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x48]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc8]
jmp 0x1015ffd2
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
dec edx
mov edi, dword [esp + 0x28]
dec ecx
add edx, ebp
add ecx, edi
add edi, dword [esp + 0x88]
add ebp, eax
add ecx, dword [esp + 0x88]
add edx, eax
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx]
call dword [eax + 0x48]
jmp 0x1015ffd2
mov edi, dword [esp + 0x14]
push ebx
push ecx
push ecx
mov ecx, dword [esp + 0x94]
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edi
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
call dword [eax + 0x78]
or dword [esp + 0x7c], 0xffffffff
test esi, esi
je 0x1015ffe2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18