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

Disassembly:
push 0xffffffffffffffff
push 0x10080ab4
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10097288]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xb4]
xor edi, edi
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0xa0], edi
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x1001262d
cmp eax, 0x3fe40
jbe 0x1001261b
push 0x1008e028
call fcn.1006ec2a
push eax
lea ecx, [esp + 0x40]
call fcn.10013280
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor esi, esi
mov eax, dword [eax]
cmp dword [eax + 0x24], esi
jle 0x1001285a
mov dword [esp + 0x48], esi
jmp 0x10012650
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov edx, ecx
mov byte [esp + 0xa0], 1
push esi
lea ecx, [esp + 0x34]
call fcn.10052160
mov eax, dword [esp + 0xb4]
add esp, 4
mov eax, dword [eax]
add eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x44]
jne 0x100126a4
push ecx
lea ecx, [esp + 0x40]
call fcn.10018fa0
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0xa0], 2
mov eax, dword [esp + 0x30]
test edi, edi
je 0x1001280a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x68]
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, 0x1000
sub eax, ecx
mov dword [edi + 0x4004], edx
push eax
push edx
push ecx
lea edx, [edi + 0x2004]
lea ecx, [edi + 4]
call fcn.10053d20
mov eax, dword [esp + 0x40]
add esp, 0xc
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
movdqa xmm0, xmmword [0x1008f280]
lea ecx, [edi + 0x400c]
sar eax, 3
movdqu xmmword [esp + 0x5c], xmm0
mov dword [edi + 0x4008], eax
lea eax, [esp + 0x58]
movdqu xmmword [esp + 0x6c], xmm0
push eax
movdqa xmm0, xmmword [0x1008f280]
movdqu xmmword [esp + 0x84], xmm0
mov dword [esp + 0x80], 0x8000800
mov dword [esp + 0x94], 0x8000800
push ecx
mov dword [esp + 0x60], 0x80003e8
mov dword [esp + 0x64], 0x3e803e8
mov dword [esp + 0x68], 0x4b004b0
mov dword [esp + 0x6c], 0x5dc05dc
mov dword [esp + 0x70], 0x6d606d6
mov dword [esp + 0x74], 0x7d007d0
mov dword [esp + 0x78], 0x8fc08fc
mov dword [esp + 0x7c], 0xaf00af0
mov dword [esp + 0x80], 0x9600960
mov dword [esp + 0x84], 0x8fc08fc
mov dword [esp + 0x88], 0x73a076c
mov dword [esp + 0x8c], 0x6d60708
mov dword [esp + 0x90], 0x6400672
mov dword [esp + 0x94], 0x8000640
mov dword [esp + 0x98], 0x8000800
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1003a680
mov eax, dword [esp + 0x20]
mov dword [edi + 0x4018], eax
mov eax, dword [eax]
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0x30]
add edi, 0x401c
mov byte [esp + 0xa0], 0
mov dword [esp + 0x40], edi
test eax, eax
je 0x10012841
push eax
call fcn.1006f76a
add esp, 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x50]
inc esi
add dword [esp + 0x48], 0xc
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax]
cmp esi, dword [eax + 0x24]
jl 0x10012650
push dword [esp + 0xc4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push dword [esp + 0x2c]
push dword [esp + 0x20]
push dword [esp + 0xc4]
push dword [esp + 0x3c]
push dword [esp + 0x60]
push dword [esp + 0x68]
push eax
call fcn.10016860
mov esi, dword [esp + 0x5c]
add esp, 0x20
mov byte [esp + 0x57], al
test esi, esi
je 0x100128b4
push dword [esp + 0x24]
mov edx, edi
push ecx
mov ecx, esi
call fcn.1001cb80
push esi
call fcn.1006f76a
mov al, byte [esp + 0x63]
add esp, 0xc
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1006ece9
add esp, 0x98
ret