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

Disassembly:
sub esp, 0x4c
mov edx, dword [esp + 0x64]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov ebx, dword [ebx]
mov ebp, ebx
push edi
cmp ebx, dword [esp + 0x6c]
jge 0x10012285
mov ecx, dword [esp + 0x64]
lea edi, [ecx + ebx*2]
add edi, ebx
nop word [eax + eax]
movzx ecx, byte [edi + 2]
cmp ecx, edx
jne 0x10012271
cmp byte [edi], 1
jne 0x10012256
test esi, esi
je 0x10012247
cmp edx, 1
jne 0x10012345
cmp dword [esp + 0x18], 0
jne 0x10012345
xor esi, esi
mov dword [esp + 0x18], 1
mov ecx, 2
jmp 0x10012265
xor ecx, ecx
cmp edx, 4
setne cl
xor esi, ecx
mov ecx, 1
inc ebp
add eax, ecx
add edi, 3
cmp ebp, dword [esp + 0x6c]
jl 0x10012220
test esi, esi
je 0x10012285
cmp edx, 1
jne 0x10012285
cmp dword [esp + 0x18], 0
jne 0x10012345
cmp eax, 5
ja 0x10012345
cmp edx, 4
jne 0x1001234f
test eax, eax
je 0x1001233f
mov ecx, dword [esp + 0x64]
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x60]
lea ecx, [ecx + ebx*2]
add ecx, ebx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x70]
lea ebp, [ecx + ecx*2]
shl ebp, 4
add ebp, 0x100706f4
nop word [eax + eax]
movzx ecx, word [ebp]
cmp cx, 0xffff
je 0x10012661
movsx esi, cx
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x36], 4
bts ecx, esi
cmp esi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp esi, 0x40
mov esi, dword [esp + 0x68]
cmovae edx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
inc ebx
mov edx, dword [esp + 0x6c]
add ebp, 2
movzx ecx, byte [edx]
mov byte [esp + 0x34], cl
movzx ecx, byte [edx + 1]
add edx, 3
mov byte [esp + 0x35], cl
movups xmm0, xmmword [esp + 0x2c]
mov dword [esp + 0x6c], edx
movups xmmword [edi], xmm0
mov ecx, dword [edi]
or dword [esi], ecx
mov ecx, dword [edi + 4]
add edi, 0x10
or dword [esi + 4], ecx
sub eax, 1
jne 0x100122d0
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov edi, dword [esp + 0x68]
test al, 1
je 0x10012403
mov ecx, dword [esp + 0x70]
mov ebp, ebx
shl ebp, 4
add ebp, dword [esp + 0x60]
lea ecx, [edx + ecx*4]
lea ecx, [ecx + ecx*2]
movzx esi, word [ecx*4 + 0x100706c4]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x20], esi
lea ecx, [ecx + ebx*2]
add ecx, ebx
mov dword [esp + 0x6c], ecx
cmp si, 0xffff
je 0x10012661
mov ecx, 0x200
cmp si, cx
je 0x10012403
xor ecx, ecx
movsx esi, si
bts ecx, esi
xor edx, edx
cmp esi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp esi, 0x40
mov esi, dword [esp + 0x6c]
cmovae edx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
dec eax
mov edx, dword [esp + 0x74]
inc ebx
movzx ecx, byte [esi]
mov byte [esp + 0x34], cl
movzx ecx, byte [esi + 1]
add esi, 3
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], dl
movups xmm0, xmmword [esp + 0x2c]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x20]
movups xmmword [ebp], xmm0
mov ecx, dword [ebp]
or dword [edi], ecx
mov ecx, dword [ebp + 4]
add ebp, 0x10
or dword [edi + 4], ecx
mov ecx, 0x200
test al, 1
jne 0x10012396
cmp edx, 2
je 0x10012412
mov esi, 0xfffffffc
cmp eax, 3
jle 0x10012417
mov esi, 0xfffffff8
mov ecx, dword [esp + 0x70]
shl ecx, 2
cmp eax, 2
jl 0x100125b8
mov dword [esp + 0x28], ecx
add ecx, edx
lea ecx, [ecx + ecx*2]
lea esi, [esi + ecx*4]
add esi, 0x100706d0
nop dword [eax]
movzx ebp, word [esi - 2]
cmp bp, 0xffff
je 0x10012661
movzx ecx, word [esi]
cmp cx, 0xffff
je 0x10012661
movsx ecx, cx
xor edi, edi
bts edi, ecx
xor edx, edx
cmp ecx, 0x20
cmovae edx, edi
xor edi, edx
mov dword [esp + 0x18], edx
cmp ecx, 0x40
mov dword [esp + 0x20], edi
mov ecx, edx
mov edx, dword [esp + 0x74]
cmovae ecx, edi
mov byte [esp + 0x6c], dl
mov dword [esp + 0x18], ecx
xor edi, edi
movsx ecx, bp
xor ebp, ebp
bts ebp, ecx
cmp ecx, 0x20
cmovae edi, ebp
xor ebp, edi
mov dword [esp + 0x14], edi
cmp ecx, 0x40
mov ecx, edi
cmovae ecx, ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x64]
lea edi, [ecx + ebx*2]
mov ecx, ebx
add edi, ebx
shl ecx, 4
add ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov cl, byte [edi + 1]
cmp byte [edi], 1
mov edi, dword [esp + 0x68]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x14]
jne 0x1001252c
or ecx, dword [esp + 0x18]
or ebp, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov cl, byte [esp + 0x13]
mov byte [esp + 0x35], cl
mov cl, dl
mov byte [esp + 0x36], cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x34], 1
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ecx], xmm0
mov ebp, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], ecx
mov ecx, ebp
and ecx, dword [esp + 0x20]
cmp ecx, 0xffffffff
je 0x10012525
or dword [edi], ebp
mov ecx, dword [esp + 0x20]
or dword [edi + 4], ecx
mov ecx, 1
jmp 0x1001259d
mov dword [esp + 0x40], ecx
mov cl, byte [esp + 0x13]
mov byte [esp + 0x45], cl
mov cl, dl
mov byte [esp + 0x46], cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
or ebp, dword [esp + 0x20]
mov byte [esp + 0x44], 0
movups xmm0, xmmword [esp + 0x3c]
mov byte [esp + 0x54], 0
movups xmmword [ecx], xmm0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
movzx ecx, byte [ecx + 4]
mov byte [esp + 0x55], cl
mov cl, dl
mov byte [esp + 0x56], cl
mov ecx, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x14]
or ecx, dword [esp + 0x18]
or dword [edi], ebp
or dword [edi + 4], ecx
mov ecx, 2
mov edx, dword [esp + 0x74]
sub eax, 2
add ebx, ecx
add esi, 4
cmp eax, 2
jge 0x10012440
mov ecx, dword [esp + 0x28]
jmp 0x100125bc
mov byte [esp + 0x6c], dl
test al, 1
je 0x10012659
add ecx, edx
mov ebp, ebx
shl ebp, 4
add ebp, dword [esp + 0x60]
lea ecx, [ecx + ecx*2]
movzx edx, word [ecx*4 + 0x100706ce]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x28], edx
lea ecx, [ecx + ebx*2]
add ecx, ebx
mov dword [esp + 0x20], ecx
nop dword [eax + eax]
cmp dx, 0xffff
je 0x10012661
xor ecx, ecx
movsx esi, dx
bts ecx, esi
xor edx, edx
cmp esi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp esi, 0x40
mov dword [esp + 0x4c], ecx
cmovae edx, ecx
dec eax
mov dword [esp + 0x50], edx
inc ebx
mov edx, dword [esp + 0x20]
movzx ecx, byte [edx]
mov byte [esp + 0x54], cl
movzx ecx, byte [edx + 1]
add edx, 3
mov byte [esp + 0x55], cl
mov cl, byte [esp + 0x6c]
mov byte [esp + 0x56], cl
movups xmm0, xmmword [esp + 0x4c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
movups xmmword [ebp], xmm0
mov ecx, dword [ebp]
or dword [edi], ecx
mov ecx, dword [ebp + 4]
add ebp, 0x10
or dword [edi + 4], ecx
test al, 1
jne 0x100125f0
test eax, eax
je 0x1001233f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x4c
ret