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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, edx
mov edi, ecx
mov edx, dword [edx + 0x50]
movzx eax, byte [ebx + 0x95]
mov ecx, dword [ebx + 0x5c]
movsd xmm0, qword [ebx + 0x84]
mov esi, dword [ebx + 0x54]
mov dword [esp + 0x24], edx
mov byte [esp + 0xf], al
mov eax, dword [ebx + 0x8c]
test ecx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x3c], eax
je 0x1015b2de
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x1015b672
mov dl, al
lea esi, [ecx*4]
add edx, edx
test esi, esi
mov dword [esp + 4], esi
js 0x1015b679
mov dword [esp + 8], edx
je 0x1015b2e7
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
test eax, eax
je 0x1015b2ef
mov esi, dword [esp + 4]
jmp 0x1015b305
mov eax, 2
xor esi, esi
jmp 0x1015b316
mov esi, dword [esp + 4]
mov eax, edx
jmp 0x1015b30e
call sub.KERNEL32.dll_GetProcessHeap
mov esi, dword [esp + 4]
test eax, eax
je 0x1015b654
mov dword [0x1048f0f8], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1015b654
push esi
push dword [esp + 0x20]
mov dword [esp + 0x24], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
test esi, esi
je 0x1015b3a4
mov dword [esp + 4], edx
xor edx, edx
cmp esi, 0x8000000
setb al
jae 0x1015b680
mov ecx, esi
mov dl, al
shl ecx, 4
shl edx, 3
test ecx, ecx
js 0x1015b680
mov dword [esp + 0x18], edx
je 0x1015b3ad
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
mov dword [esp + 8], ecx
test eax, eax
jne 0x1015b38a
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 8]
test eax, eax
je 0x1015b663
mov dword [0x1048f0f8], eax
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test eax, eax
jne 0x1015b3bd
jmp 0x1015b663
mov eax, 8
xor ecx, ecx
jmp 0x1015b3bd
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 4]
test eax, eax
je 0x1015b663
mov dword [esp + 4], esi
push ecx
push edx
mov dword [esp + 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x6c]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x1015b45b
mov dword [esp], edx
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x1015b687
mov dl, al
lea esi, [ecx*4]
add edx, edx
test esi, esi
mov dword [esp + 0x10], esi
js 0x1015b687
mov dword [esp + 0x14], edx
je 0x1015b61b
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
test eax, eax
jne 0x1015b43a
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x1015b62c
mov dword [0x1048f0f8], eax
push dword [esp + 0x10]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x1015b62c
mov ecx, dword [esp + 0x10]
jmp 0x1015b462
mov eax, 2
xor ecx, ecx
push ecx
push edx
mov dword [esp + 0x18], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x78]
test edx, edx
mov dword [esp + 0x14], edx
je 0x1015b4f5
xor eax, eax
cmp edx, 0x2492493
mov dword [esp + 0x20], ecx
setb byte [esp]
jae 0x1015b68e
movzx ecx, byte [esp]
imul esi, edx, 0x38
mov al, cl
shl eax, 3
test esi, esi
js 0x1015b68e
mov dword [esp], eax
je 0x1015b63b
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
test eax, eax
jne 0x1015b4db
call sub.KERNEL32.dll_GetProcessHeap
mov edx, dword [esp]
test eax, eax
je 0x1015b648
mov dword [0x1048f0f8], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp]
test eax, eax
je 0x1015b648
mov ecx, dword [esp + 0x20]
jmp 0x1015b4fc
mov eax, 8
xor esi, esi
push esi
push ecx
mov esi, eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x48]
xor eax, 0x2e
mov dword [esp], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x30], edx
or eax, dword [ebx + 4]
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
jne 0x1015b537
movaps xmm1, xmmword [0x10437eb0]
jmp 0x1015b555
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.1015ae30
movups xmm2, xmmword [ebx + 0x10]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
movups xmm0, xmmword [ebx + 0x28]
movups xmm1, xmmword [esp + 0x58]
mov edx, dword [esp + 0x24]
movaps xmm3, xmmword [esp + 0x40]
mov dword [edi + 0x50], edx
mov edx, dword [esp + 0x34]
movlps qword [edi + 0x84], xmm3
mov dword [edi + 0x8c], edx
mov edx, dword [ebx + 0x90]
mov dword [edi + 0x90], edx
movzx edx, byte [ebx + 0x94]
mov ebx, dword [esp + 0x18]
mov byte [edi + 0x94], dl
movzx edx, byte [esp + 0xf]
mov byte [edi + 0x95], dl
mov edx, dword [esp + 0x38]
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x54], edx
mov edx, dword [esp + 0x28]
mov dword [edi + 0x58], edx
mov dword [edi + 0x5c], edx
mov edx, dword [esp + 8]
mov dword [edi + 0x60], edx
mov edx, dword [esp + 4]
mov dword [edi + 0x64], edx
mov dword [edi + 0x68], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0x6c], edx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp]
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov esi, dword [esp + 0x20]
mov dword [edi + 0x40], ebx
mov ebx, dword [esp + 0x30]
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], esi
movups xmmword [edi], xmm1
movups xmmword [edi + 0x10], xmm2
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
movups xmmword [edi + 0x28], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
mov eax, ecx
test eax, eax
jne 0x1015b455
push dword [esp + 0x10]
push ecx
call fcn.1001ac80
add esp, 8
jmp 0x1015b693
mov edx, dword [esp]
mov eax, edx
test eax, eax
jne 0x1015b4ef
push esi
push edx
call fcn.1001ac80
add esp, 8
jmp 0x1015b693
push esi
push dword [esp + 0xc]
call fcn.1001ac80
add esp, 8
ud2
push ecx
push dword [esp + 0x1c]
call fcn.1001ac80
add esp, 8
jmp 0x1015b693
call fcn.1001ac40
ud2
call fcn.1001ac40
ud2
call fcn.1001ac40
jmp 0x1015b693
call fcn.1001ac40
jmp 0x1015b693
call fcn.1001ac40
ud2