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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov ecx, dword [ebx + 0x70]
mov eax, ecx
cdq
idiv dword [esp + 0x5c]
mov esi, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x1c], esi
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x5c]
imul eax, dword [esp + 0x60]
mov ecx, edx
mov dword [esp + 0x60], 0
mov ebp, edi
mov dword [esp + 0x20], edi
lea eax, [edx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
imul eax, dword [esp + 0x64]
cmp dword [ebx + 0x38], 0
lea edx, [ecx + eax*4]
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x4c], edx
lea ecx, [eax + 0x118]
mov dword [esp + 0x48], ecx
mov ecx, 0x1000000
cmovne ecx, esi
test eax, eax
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x30], ecx
lea ecx, [ebx + 0x7c]
cmovle ecx, dword [esp + 0x60]
cmp edi, edx
mov dword [esp + 0x10], ecx
lea edx, [ebx + 0x18]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], eax
jae 0x10121064
mov ecx, dword [ebx + 0x98]
lea eax, [ebx + 0x98]
mov dword [esp + 0x60], eax
test ecx, ecx
jne 0x10120806
xor eax, eax
jmp 0x10120822
mov eax, dword [esp + 0x18]
mov edx, esi
sar edx, cl
imul edx, dword [ebx + 0x9c]
sar eax, cl
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul edx, eax, 0x224
add edx, dword [ebx + 0xa8]
mov dword [esp + 0x14], edx
cmp esi, dword [esp + 0x30]
jl 0x10120878
movups xmm0, xmmword [ebx + 0x18]
mov eax, edi
sub eax, dword [esp + 0x58]
movups xmmword [ebx + 0x40], xmm0
sar eax, 2
cmp dword [ebx + 0x78], 0
movups xmm0, xmmword [ebx + 0x28]
mov dword [ebx + 0x60], eax
movups xmmword [ebx + 0x50], xmm0
jle 0x10120871
lea eax, [ebx + 0x88]
push eax
lea eax, [ebx + 0x7c]
push eax
call fcn.1013e8c0
mov edx, dword [esp + 0x1c]
add esp, 8
lea eax, [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
test dword [esp + 0x40], eax
jne 0x101208b8
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10120890
xor eax, eax
jmp 0x101208a8
mov edx, esi
sar eax, cl
sar edx, cl
imul edx, dword [ebx + 0x9c]
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul edx, eax, 0x224
add edx, dword [ebx + 0xa8]
mov dword [esp + 0x14], edx
cmp dword [edx + 0x1c], 0
je 0x1012095a
mov eax, dword [edx + 0x18]
mov dword [edi], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edi, 4
inc edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x5c]
jl 0x10120943
mov edx, dword [esp + 0x68]
inc esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], esi
test edx, edx
je 0x10120919
cmp esi, dword [esp + 0x64]
jg 0x10120919
mov eax, esi
and eax, 0x8000000f
jns 0x1012090c
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x10120919
push esi
push ebx
call edx
mov ecx, dword [esp + 0x18]
add esp, 8
test ecx, ecx
je 0x10120943
cmp ebp, edi
jae 0x10120943
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp]
add ebp, 4
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov dword [eax + edx*4], esi
cmp ebp, edi
jb 0x10120925
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp edi, dword [esp + 0x4c]
jb 0x10120832
jmp 0x1012105d
cmp dword [ebx + 0x2c], 0x20
jl 0x1012096c
lea eax, [ebx + 0x18]
push eax
call fcn.1011fdd0
add esp, 4
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x20], 0
je 0x101209f5
and eax, 0x3f
mov ecx, dword [edx + eax*8 + 0x24]
mov edx, dword [edx + eax*8 + 0x28]
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
cmp ecx, 0x100
jge 0x101209bf
mov dword [ebx + 0x2c], eax
mov dword [edi], edx
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x101209c7
add eax, 0xffffff00
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0x30], 0
jne 0x1012105d
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101209e3
cmp dword [ebx + 0x2c], 0x40
jg 0x1012105d
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
test edx, edx
je 0x101208c7
jmp 0x10120a63
movzx ecx, al
mov eax, dword [edx]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x10120a4d
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x24], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
movzx edx, word [edx + 2]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], edx
cmp dword [ebx + 0x30], 0
mov ecx, eax
mov dword [esp + 0x28], ecx
jne 0x1012105d
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x10120a85
cmp dword [ebx + 0x2c], 0x40
jg 0x1012105d
cmp edx, 0x100
jge 0x10120c8c
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], 0
je 0x10120aac
shl edx, 8
or edx, dword [eax + 0x18]
mov dword [edi], edx
mov dword [esp + 0x60], ecx
jmp 0x101208c7
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x18]
call fcn.10104c20
movzx ecx, al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x10120b20
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov dword [esp + 0x24], ecx
cmp eax, 0x20
jl 0x10120b43
lea eax, [ebx + 0x18]
push eax
call fcn.1011fdd0
add esp, 4
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x18]
call fcn.10104c20
movzx ecx, al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x10120bb7
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov dword [esp + 0x60], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
movzx ecx, al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
lea edx, [eax + ecx*4]
mov al, byte [edx]
movzx ecx, al
sub ecx, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
test ecx, ecx
jle 0x10120c39
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
lea edx, [edx + eax*4]
mov al, byte [edx]
movzx eax, al
add eax, dword [esp + 0x60]
cmp dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov dword [esp + 0x60], eax
jne 0x1012105d
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x10120c68
cmp dword [esp + 0x60], 0x40
jg 0x1012105d
mov eax, dword [esp + 0x28]
shl ecx, 8
or ecx, dword [esp + 0x24]
shl ecx, 8
or ecx, dword [esp + 0x2c]
shl ecx, 8
or ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x60], eax
jmp 0x101208c7
cmp edx, 0x118
jge 0x10120fff
add edx, 0xffffff00
mov dword [esp + 0x2c], edx
cmp edx, 4
jl 0x10120ccd
lea esi, [edx - 2]
sar esi, 1
lea eax, [ebx + 0x18]
push esi
push eax
call fcn.1011fed0
mov edx, dword [esp + 0x34]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
mov dword [esp + 0x2c], edx
lea eax, [edx + 1]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov dword [esp + 0x60], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
movzx ecx, al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
lea esi, [eax + ecx*4]
mov cl, byte [esi]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x10120d40
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.10104c20
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
movzx ecx, word [esi + 2]
dec edx
and eax, edx
add eax, ecx
mov cl, byte [esi + eax*4]
lea esi, [esi + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx edx, word [esi + 2]
mov dword [esp + 0x60], edx
cmp eax, 0x20
jl 0x10120d67
lea eax, [ebx + 0x18]
push eax
call fcn.1011fdd0
mov edx, dword [esp + 0x64]
add esp, 4
cmp edx, 4
jb 0x10120d8e
lea esi, [edx - 2]
sar esi, 1
lea eax, [ebx + 0x18]
push esi
push eax
call fcn.1011fed0
mov edx, dword [esp + 0x68]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
inc edx
cmp edx, 0x78
jle 0x10120d99
lea ecx, [edx - 0x78]
jmp 0x10120dc2
movzx eax, byte [edx + 0x101dabf7]
mov ecx, eax
and eax, 0xf
shr ecx, 4
imul ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, 1
add ecx, 8
cmp ecx, eax
cmovge eax, ecx
mov dword [esp + 0x60], eax
mov ecx, eax
cmp dword [ebx + 0x30], 0
jne 0x10121059
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x10120dde
cmp dword [ebx + 0x2c], 0x40
jg 0x10121059
mov edx, dword [esp + 0x20]
mov eax, edx
sub eax, dword [esp + 0x58]
sar eax, 2
cmp eax, ecx
jl 0x1012110a
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
sub eax, edx
sar eax, 2
cmp eax, edi
jl 0x1012110a
lea eax, [ecx*4]
mov esi, edx
sub esi, eax
mov dword [esp + 0x34], esi
cmp ecx, 2
jg 0x10120ed2
cmp edi, 4
jl 0x10120ed2
test dl, 3
jne 0x10120ed2
cmp ecx, 1
jne 0x10120e45
mov eax, dword [esi]
xor edi, edi
mov ecx, eax
mov dword [esp + 0x20], eax
or edi, ecx
jmp 0x10120e4e
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], edx
test dl, 4
je 0x10120e83
mov eax, dword [esp + 0x20]
add esi, 4
mov dword [edx], eax
lea eax, [edx + 4]
mov dword [esp + 0x60], eax
mov eax, edi
xor edi, edi
mov dword [esp + 0x34], esi
or edi, ecx
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
sar eax, 1
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x10120eb3
mov esi, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov dword [esi], ecx
lea ecx, [eax*8 - 8]
mov dword [esi + 4], edi
mov edi, esi
shr ecx, 2
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
test byte [esp + 0x3c], 1
je 0x10120ec8
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + edi*8]
mov dword [ecx + edi*8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
jmp 0x10120f1e
cmp ecx, edi
jl 0x10120ef6
lea eax, [edi*4]
push eax
push esi
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
jmp 0x10120f22
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
test edi, edi
jle 0x10120f22
mov ecx, edx
mov dword [esp + 0x60], eax
sub esi, edx
nop word [eax + eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edi, 1
jne 0x10120f10
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
lea edx, [edx + edi*4]
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
cmp edi, ecx
jl 0x10120f7f
mov edx, dword [esp + 0x68]
sub edi, ecx
inc esi
test edx, edx
je 0x10120f73
cmp esi, dword [esp + 0x64]
jg 0x10120f73
mov eax, esi
and eax, 0x8000000f
jns 0x10120f62
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x10120f73
push esi
push ebx
call edx
mov ecx, dword [esp + 0x64]
add esp, 8
mov edx, dword [esp + 0x68]
cmp edi, ecx
jge 0x10120f45
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
test dword [esp + 0x40], edi
je 0x10120fbd
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
test ecx, ecx
jne 0x10120f93
xor eax, eax
jmp 0x10120fad
mov edx, esi
mov eax, edi
sar edx, cl
imul edx, dword [ebx + 0x9c]
sar eax, cl
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul eax, eax, 0x224
add eax, dword [ebx + 0xa8]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x20]
je 0x10120943
cmp ebp, edi
jae 0x10120943
mov ebx, dword [esp + 0x10]
nop dword [eax + eax]
mov esi, dword [ebp]
add ebp, 4
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov dword [eax + edx*4], esi
cmp ebp, edi
jb 0x10120fe0
jmp 0x1012093f
cmp edx, dword [esp + 0x48]
jge 0x1012110a
mov dword [esp + 0x60], ecx
lea eax, [edx - 0x118]
mov dword [esp + 0x3c], eax
cmp ebp, edi
jae 0x10121045
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov esi, dword [ebp]
add ebp, 4
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov dword [eax + edx*4], esi
cmp ebp, edi
jb 0x10121023
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
mov dword [edi], eax
jmp 0x101208cb
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
lea edx, [ebx + 0x18]
cmp dword [ebx + 0x30], 0
jne 0x1012107c
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x10121078
cmp dword [ebx + 0x2c], 0x40
jg 0x1012107c
xor eax, eax
jmp 0x10121081
mov eax, 1
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x38], 0
je 0x101210d5
test eax, eax
je 0x101210d9
cmp edi, dword [esp + 0x44]
jae 0x1012110a
cmp dword [ebx + 0x78], 0
movups xmm0, xmmword [ebx + 0x40]
mov eax, dword [ebx + 0x60]
mov dword [ebx], 5
movups xmmword [edx], xmm0
mov dword [ebx + 0x70], eax
movups xmm0, xmmword [ebx + 0x50]
movups xmmword [edx + 0x10], xmm0
jle 0x101210fd
lea eax, [ebx + 0x7c]
add ebx, 0x88
push eax
push ebx
call fcn.1013e8c0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test eax, eax
jne 0x1012110a
test ecx, ecx
je 0x101210ed
cmp esi, dword [esp + 0x64]
cmovg esi, dword [esp + 0x64]
push esi
push ebx
call ecx
add esp, 8
sub edi, dword [esp + 0x58]
sar edi, 2
mov dword [ebx], 0
mov dword [ebx + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov dword [ebx], 3
xor eax, eax
pop ebx
add esp, 0x40
ret