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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2d8]
mov eax, dword [ecx + 0x2dc]
cmp edx, eax
mov dword [esp + 0x14], edx
jae 0x100136ef
cmp eax, 3
mov dword [esp + 0x48], eax
jne 0x10013705
mov eax, dword [ecx + 0x1ac]
mov ebx, 4
mov dword [esp + 8], 4
test eax, eax
mov dword [esp + 4], eax
je 0x10013088
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, 0x20000000
setb al
jae 0x1001375d
mov dl, al
lea edi, [ecx*4]
shl edx, 2
test edi, edi
js 0x10013764
je 0x10012fe5
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1044eff8]
mov eax, dword [eax]
test eax, eax
je 0x10012fe9
mov esi, edx
jmp 0x10013002
mov eax, edx
jmp 0x1001300d
mov esi, edx
call sub.KERNEL32.dll_GetProcessHeap
mov edx, esi
test eax, eax
je 0x10013751
mov ecx, dword [0x1044eff8]
mov dword [ecx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, esi
test eax, eax
mov dword [esp + 8], eax
je 0x10013751
xor eax, eax
cmp dword [esp + 4], 8
jb 0x10013074
mov eax, dword [esp + 4]
movdqa xmm0, xmmword [0x102bd620]
movdqa xmm1, xmmword [0x102bd630]
movdqa xmm2, xmmword [0x102bd640]
mov edx, dword [esp + 8]
xor ecx, ecx
and eax, 0xfffffff8
nop word [eax + eax]
movdqa xmm3, xmm0
movdqu xmmword [edx + ecx*4], xmm0
paddd xmm0, xmm2
paddd xmm3, xmm1
movdqu xmmword [edx + ecx*4 + 0x10], xmm3
add ecx, 8
cmp eax, ecx
jne 0x10013050
cmp dword [esp + 4], eax
je 0x10013088
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
nop dword [eax]
mov dword [ecx + eax*4], eax
inc eax
cmp edx, eax
jne 0x10013080
mov dword [esp + 0x3c], 0xfffffffb
mov dword [esp + 0xc], 4
mov edi, dword [ebp + 8]
mov eax, dword [esp + 4]
cmp ebx, 0x80000000
mov ecx, 0x7fffffff
lea edx, [ebx - 1]
cmovae ecx, ebx
mov dword [esp + 0x40], ecx
mov esi, dword [edi + 0x1ac]
mov edi, dword [edi + 0x1a4]
cmp ebx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], edi
cmova esi, ebx
cmp ebx, eax
cmova eax, ebx
shl ebx, 5
mov dword [esp + 0x44], esi
neg esi
neg ecx
lea edi, [edi + ebx - 0x20]
neg eax
mov ebx, edx
nop word cs:[eax + eax]
nop
lea edx, [eax + ebx]
cmp edx, 0xffffffff
je 0x10013227
lea edx, [ecx + ebx]
cmp edx, 0xffffffff
je 0x100136bb
lea edx, [esi + ebx]
cmp edx, 0xffffffff
je 0x1001364a
inc ebx
cmp dword [edi + 0x34], 0
lea edx, [edi + 0x20]
mov edi, edx
je 0x100130f0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0xc]
lea eax, [edi + ebx]
cmp eax, 0xffffffff
je 0x100131f6
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jbe 0x10013686
movsd xmm0, qword [edx + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, esi
shl eax, 5
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [edx + 0x10]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [ecx + eax + 0x10]
movsd xmm1, qword [ecx + eax + 0x18]
movq xmm2, qword [ecx + eax]
movq xmm3, qword [ecx + eax + 8]
movq qword [edx], xmm2
movsd qword [edx + 0x18], xmm1
movsd qword [edx + 0x10], xmm0
movq qword [edx + 8], xmm3
movsd xmm0, qword [esp + 0x30]
movsd qword [ecx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [ecx + eax + 0x10], xmm0
movq xmm0, qword [esp + 0x18]
movq xmm1, qword [esp + 0x20]
movq qword [ecx + eax + 8], xmm1
movq qword [ecx + eax], xmm0
mov ecx, dword [esp + 4]
mov eax, 0x102bf360
cmp ebx, ecx
jae 0x1001368d
cmp esi, ecx
jae 0x10013672
mov edx, dword [esp + 8]
mov eax, dword [edx + ebx*4]
mov ecx, dword [edx + esi*4]
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], eax
inc esi
dec edi
inc ebx
cmp esi, 0x7fffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0xc], esi
jne 0x10013098
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x7fffffff
mov eax, 0x102be7fc
jmp 0x100136d0
mov eax, dword [esp + 0xc]
mov edi, 2
lea esi, [eax - 1]
cmp esi, 3
jne 0x10013254
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
cmp eax, edi
jne 0x1001335d
jmp 0x10013437
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x38]
mov eax, 0x102be6c8
cmp ecx, 4
jb 0x10013678
cmp ecx, esi
jbe 0x10013657
movsd xmm0, qword [edx + 0x78]
mov eax, esi
mov ecx, dword [esp + 4]
shl eax, 5
movsd qword [esp + 0x30], xmm0
cmp ecx, 4
movsd xmm0, qword [edx + 0x70]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [edx + 0x60]
movsd xmm1, qword [edx + 0x68]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [edx + eax + 0x10]
movsd xmm1, qword [edx + eax + 0x18]
movq xmm2, qword [edx + eax]
movq xmm3, qword [edx + eax + 8]
movq qword [edx + 0x60], xmm2
movsd qword [edx + 0x78], xmm1
movsd qword [edx + 0x70], xmm0
movq qword [edx + 0x68], xmm3
movsd xmm0, qword [esp + 0x30]
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [edx + eax + 0x10], xmm0
movq xmm0, qword [esp + 0x18]
movq xmm1, qword [esp + 0x20]
movq qword [edx + eax + 8], xmm1
movq qword [edx + eax], xmm0
mov eax, 0x102bf360
jb 0x10013678
cmp esi, ecx
jae 0x10013672
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + edi*4 - 4]
mov dword [edx + 0xc], ecx
mov dword [edx + edi*4 - 4], eax
sub edi, 2
jb 0x10013772
mov eax, dword [esp + 0x14]
cmp edi, 0x7ffffffe
ja 0x10013789
mov edx, dword [ebx + 0x1a4]
mov ecx, dword [ebx + 0x1ac]
cmp eax, edi
je 0x10013437
cmp ecx, eax
jbe 0x10013691
cmp ecx, edi
jbe 0x1001369a
mov ecx, dword [esp + 0x14]
mov eax, edi
shl eax, 5
shl ecx, 5
movsd xmm0, qword [edx + ecx + 0x18]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [edx + ecx + 0x10]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [edx + ecx]
movsd xmm1, qword [edx + ecx + 8]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [edx + eax + 0x10]
movsd xmm1, qword [edx + eax + 0x18]
movq xmm2, qword [edx + eax]
movq xmm3, qword [edx + eax + 8]
movq qword [edx + ecx], xmm2
movsd qword [edx + ecx + 0x18], xmm1
movsd qword [edx + ecx + 0x10], xmm0
movq qword [edx + ecx + 8], xmm3
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x30]
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [edx + eax + 0x10], xmm0
movq xmm0, qword [esp + 0x18]
movq xmm1, qword [esp + 0x20]
movq qword [edx + eax + 8], xmm1
movq qword [edx + eax], xmm0
mov eax, dword [esp + 4]
cmp ecx, eax
jae 0x100136a3
cmp edi, eax
jae 0x100136ae
mov edx, dword [esp + 8]
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x10], eax
mov eax, ecx
mov ecx, dword [edx + edi*4]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + edi*4], ecx
mov eax, dword [esp + 0xc]
cmp eax, 3
jb 0x1001374a
add eax, 0xfffffffd
mov dword [ebx + 0x2d4], eax
mov dword [ebx + 0x2d8], edi
mov dword [ebx + 0x2dc], esi
mov ecx, dword [ebx + 0x1ac]
cmp esi, ecx
jae 0x1001367f
mov edx, dword [ebx + 0x1a4]
mov eax, esi
shl eax, 5
cmp dword [edx + eax + 0x14], 0
mov eax, edx
je 0x10013481
mov dword [ebx + 0x2d4], esi
mov edx, dword [esp + 4]
mov dword [esp + 0xc], eax
test edx, edx
je 0x1001350c
xor ebx, ebx
cmp edx, 0x20000000
setb al
jae 0x1001376b
mov bl, al
lea edx, [edx*4]
shl ebx, 2
test edx, edx
js 0x1001376b
mov dword [esp + 0x10], ebx
je 0x1001360c
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
mov edi, ecx
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x100134e5
mov esi, edx
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10013618
mov edx, esi
mov dword [ebx], eax
mov esi, edx
push edx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, eax
test ebx, ebx
je 0x10013618
push esi
push dword [esp + 0xc]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, edi
jmp 0x10013511
mov ebx, 4
xor eax, eax
jmp 0x1001352e
mov edx, dword [esp + 8]
mov dword [edx + eax*4], ecx
mov ecx, esi
inc eax
cmp eax, ecx
je 0x10013565
cmp eax, dword [esp + 4]
je 0x10013667
mov edx, dword [ebx + eax*4]
cmp eax, edx
je 0x10013529
mov esi, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp edx, dword [esp + 4]
mov ecx, edx
jae 0x1001362a
mov edx, dword [ebx + ecx*4]
cmp eax, edx
jne 0x10013550
jmp 0x10013520
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
shl ecx, 5
add ecx, eax
jmp 0x1001358d
mov eax, dword [esp + 0xc]
mov ecx, esi
add eax, 0x20
cmp eax, esi
je 0x100135e7
mov esi, ecx
mov ecx, dword [eax + 0x18]
mov edx, 0x102bf390
cmp ecx, dword [esp + 4]
jae 0x10013636
mov edx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + ecx*4]
mov dword [edx + 0x18], eax
mov edx, dword [edx + 8]
test edx, edx
je 0x10013580
mov eax, dword [esp + 0xc]
shl edx, 3
mov eax, dword [eax]
add eax, 4
nop word cs:[eax + eax]
nop
mov ecx, dword [eax]
cmp ecx, dword [esp + 4]
jae 0x10013631
mov ecx, dword [edi + ecx*4]
mov dword [eax], ecx
add eax, 8
add edx, 0xfffffff8
jne 0x100135d0
jmp 0x10013580
mov esi, dword [0x1044eff8]
push ebx
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
push dword [esp + 8]
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov edi, ecx
test ebx, ebx
jne 0x100134fa
push esi
push dword [esp + 0x14]
call fcn.1001ac80
add esp, 8
jmp 0x10013787
mov edx, 0x102bf380
jmp 0x10013636
mov edx, 0x102bf390
push edx
mov esi, dword [esp + 8]
push esi
push ecx
call fcn.100273d0
add esp, 0xc
jmp 0x10013787
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
mov eax, 0x102be7ec
push eax
push ecx
push esi
call fcn.100273d0
add esp, 0xc
jmp 0x10013787
mov ecx, dword [esp + 4]
mov edx, 0x102bf370
jmp 0x10013636
mov ecx, dword [esp + 4]
jmp 0x10013657
mov esi, 3
jmp 0x10013657
mov eax, 0x102be7cc
jmp 0x10013657
mov eax, 0x102be6c8
jmp 0x10013657
mov esi, ebx
jmp 0x10013657
mov esi, eax
mov eax, 0x102be6c8
jmp 0x10013657
mov esi, edi
mov eax, 0x102be6c8
jmp 0x10013657
mov esi, ecx
mov ecx, eax
mov eax, 0x102bf360
jmp 0x10013657
mov ecx, dword [esp + 4]
mov esi, edi
mov eax, 0x102bf360
jmp 0x10013657
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov eax, 0x102be7dc
lea ecx, [esp + 0x18]
push eax
push 0x102bd948
push ecx
push 0x2b
push 0x102bd91c
call fcn.10027650
add esp, 0x14
jmp 0x10013787
push 0x102be880
push 0x2f
push str.assertion_failed:_old_start_uid___old_start_aid
call fcn.10027330
add esp, 0xc
ud2
mov dword [esp + 0x18], str.anchored_start_state_should_be_at_index_3
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x102bd71c
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, 0x102be798
push 0x102be840
push eax
call fcn.100068d0
add esp, 8
ud2
mov eax, 0x102be7bc
jmp 0x10013777
push edi
push edx
call fcn.1001ac80
add esp, 8
ud2
call fcn.1001ac40
ud2
call fcn.1001ac40
ud2
call fcn.1001ac40
jmp 0x10013787
mov eax, 0x102be79c
push eax
push 0x2b
push 0x102bd690
call fcn.10027330
add esp, 0xc
ud2
mov eax, 0x102be7ac
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
jmp 0x100136d0