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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c438
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100611cc]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa8], 0xf
call fcn.10002a5b
mov dword [esp + 0xb8], ebx
mov eax, 0x10000000
test dword [ebp + 0x10], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x17], bl
je 0x1001292f
xor dword [ebp + 0x10], eax
mov byte [esp + 0x17], 1
mov eax, dword [ebp + 0x10]
push ebx
call fcn.1001f486
mov esi, eax
test esi, 0xffffe1ff
pop ecx
je 0x10012962
push 0x67
pop eax
mov ecx, str.Options_can_only_provide_array_form
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push 0x10058310
lea eax, [esp + 0x30]
push eax
call fcn.1003a718
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xb8], 1
push dword [esp + 0x1c]
lea edx, [esp + 0x64]
call fcn.1001f5b0
pop ecx
push ebx
push ebx
push ebx
lea eax, [esp + 0x6c]
push eax
add edi, 0xc
push edi
call fcn.100200fa
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x100129f7
mov ecx, dword [eax + 4]
and ecx, 0x1e00
je 0x100129d9
test cx, 0x800
jne 0x100129d9
cmp esi, ebx
je 0x10012a39
cmp esi, ecx
je 0x10012a39
push 0x66
pop eax
mov ecx, str.Mismatch_of_specified_and_existing_array_form
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push 0x10058310
lea eax, [esp + 0x30]
jmp 0x1001295c
push 0x66
pop eax
mov ecx, str.Named_property_must_be_non_alternate_array
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push 0x10058310
lea eax, [esp + 0x30]
jmp 0x1001295c
push ebx
or esi, 0x200
push esi
push 1
lea eax, [esp + 0x6c]
push eax
push edi
call fcn.100200fa
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x48], eax
jne 0x10012a35
push 0x66
pop eax
mov ecx, str.Failed_to_create_named_array
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push 0x10058310
lea eax, [esp + 0x30]
jmp 0x1001295c
mov eax, dword [esp + 0x48]
lea esi, [eax + 0x44]
mov ebx, esi
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], esi
call fcn.100143a8
xor edi, edi
mov byte [esp + 0xb8], 2
cmp dword [esp + 0x54], edi
jne 0x10012a61
mov dword [esp + 0x34], edi
jmp 0x10012a70
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
mov dword [esp + 0x34], eax
call fcn.10002539
push dword [esp + 0x28]
call fcn.10036120
cmp eax, edi
pop ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
jbe 0x10012e49
mov esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x20]
jae 0x10012e49
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0x40]
lea edx, [esp + 0x20]
lea edi, [esp + 0x2c]
call fcn.100111c1
cmp dword [esp + 0x2c], 0
pop ecx
pop ecx
je 0x10012acd
cmp dword [esp + 0x24], 4
je 0x10012acd
add esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
jb 0x10012a9d
cmp esi, dword [esp + 0x20]
jae 0x10012e49
cmp dword [esp + 0x24], 4
je 0x10012bb4
mov ebx, esi
mov dword [esp + 0x10], esi
push ebx
push dword [esp + 0x2c]
lea eax, [esp + 0x40]
lea edx, [esp + 0x20]
lea edi, [esp + 0x2c]
call fcn.100111c1
mov eax, dword [esp + 0x2c]
test eax, eax
pop ecx
pop ecx
je 0x10012b5e
cmp eax, 4
je 0x10012b5e
cmp eax, 2
jne 0x10012b19
cmp byte [esp + 0x17], 0
jne 0x10012b5e
cmp eax, 1
jne 0x10012b70
mov eax, dword [esp + 0x18]
add eax, ebx
cmp eax, dword [esp + 0x20]
jae 0x10012b70
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x4c]
lea edx, [esp + 0x54]
lea edi, [esp + 0x44]
call fcn.100111c1
cmp dword [esp + 0x44], 0
pop ecx
pop ecx
je 0x10012b5e
cmp dword [esp + 0x3c], 4
je 0x10012b5e
cmp dword [esp + 0x3c], 2
jne 0x10012b70
cmp byte [esp + 0x17], 0
je 0x10012b70
add ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
jb 0x10012ae8
push dword [esp + 0x28]
lea ecx, [esp + 0x74]
call fcn.10002418
sub ebx, esi
push ebx
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0xc4], 3
call fcn.100029ac
push 0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 2
call fcn.10002a77
jmp 0x10012d3d
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
call fcn.1001141f
add esi, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
mov dword [esp + 0x48], eax
call fcn.10002485
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
jae 0x10012d3d
push dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
push esi
lea eax, [esp + 0x40]
lea edx, [esp + 0x20]
lea edi, [esp + 0x2c]
call fcn.100111c1
cmp dword [esp + 0x2c], 4
pop ecx
pop ecx
jne 0x10012ce5
push dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
call fcn.100113fa
add esp, 8
test al, al
je 0x10012ce5
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, ebx
cmp eax, dword [esp + 0x20]
jae 0x10012c51
push eax
push esi
lea eax, [esp + 0x4c]
lea edx, [esp + 0x54]
lea edi, [esp + 0x44]
call fcn.100111c1
pop ecx
pop ecx
jmp 0x10012c66
and dword [esp + 0x4c], 0
mov dword [esp + 0x3c], 3
mov dword [esp + 0x44], 0x3b
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x44]
jne 0x10012cb6
push esi
lea ecx, [esp + 0x74]
call fcn.10002418
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x78]
lea esi, [esp + 0x94]
mov byte [esp + 0xc0], 5
call fcn.10002dab
push 0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 2
call fcn.10002a77
mov eax, dword [esp + 0x4c]
add dword [esp + 0x10], eax
jmp 0x10012d25
cmp eax, dword [esp + 0x40]
je 0x10012ccb
push dword [esp + 0x1c]
push eax
call fcn.100113d6
add esp, 8
jmp 0x10012ccd
mov al, 1
test al, al
jne 0x10012d39
push esi
lea ecx, [esp + 0x74]
call fcn.10002418
mov byte [esp + 0xb8], 6
jmp 0x10012cfb
push esi
lea ecx, [esp + 0x74]
call fcn.10002418
mov byte [esp + 0xb8], 4
mov ebx, dword [esp + 0x18]
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x78]
lea esi, [esp + 0x94]
call fcn.10002dab
push 0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 2
call fcn.10002a77
add dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jb 0x10012be7
jmp 0x10012d3d
add dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x54]
xor esi, esi
cmp esi, dword [esp + 0x34]
jae 0x10012d9c
test ebx, ebx
je 0x10012d5a
mov eax, dword [esp + 0x58]
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x10012d5f
call fcn.10036494
cmp dword [ebx + esi*4], 0
je 0x10012d91
test ebx, ebx
je 0x10012d76
mov eax, dword [esp + 0x58]
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x10012d7b
call fcn.10036494
mov eax, dword [ebx + esi*4]
add eax, 0x24
lea ecx, [esp + 0x8c]
call fcn.10005758
test al, al
jne 0x10012d98
inc esi
cmp esi, dword [esp + 0x34]
jb 0x10012d49
cmp esi, dword [esp + 0x34]
jne 0x10012df5
push 0x64
call fcn.1001ea28
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xb8], 7
je 0x10012de5
cmp dword [esp + 0xa4], 0x10
mov eax, dword [esp + 0x90]
jae 0x10012dce
lea eax, [esp + 0x90]
push 0
push eax
push 0x100505ac
push dword [esp + 0x54]
push dword [esp + 0x2c]
call fcn.10003b47
jmp 0x10012de7
xor eax, eax
mov byte [esp + 0xb8], 2
mov dword [esp + 0x1c], eax
jmp 0x10012e2d
test ebx, ebx
je 0x10012e06
mov eax, dword [esp + 0x58]
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x10012e0b
call fcn.10036494
test ebx, ebx
lea edi, [ebx + esi*4]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
je 0x10012e25
mov eax, dword [esp + 0x58]
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x10012e2a
call fcn.10036494
and dword [edi], 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
call fcn.100053f3
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jb 0x10012a8f
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x34], ebx
jbe 0x10012e9c
mov edi, dword [esp + 0x54]
cmp edi, ebx
je 0x10012e68
mov eax, dword [esp + 0x58]
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x10012e6d
call fcn.10036494
cmp dword [edi + esi*4], ebx
je 0x10012e95
cmp edi, ebx
je 0x10012e83
mov eax, dword [esp + 0x58]
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x10012e88
call fcn.10036494
mov ecx, dword [edi + esi*4]
cmp ecx, ebx
je 0x10012e95
mov eax, dword [ecx]
push 1
call dword [eax]
inc esi
cmp esi, dword [esp + 0x34]
jb 0x10012e57
lea esi, [esp + 0x50]
call fcn.100024f4
lea esi, [esp + 0x60]
call fcn.10002b10
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.10002a77
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.1003635b
mov esp, ebp
pop ebp
ret