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

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc0]
xor esi, esi
mov ebx, dword [esp + 0xc4]
imul ebp, ebx, 0x544
push 0x2c
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x24]
add ebp, edi
mov dword [esp + 0x84], ecx
push esi
mov dword [esp + 0x44], 0
lea eax, [ecx + eax*4]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0xabc]
mov ecx, dword [eax + 0x28]
mov eax, 0x24924925
mul ecx
lea eax, [esp + 0x98]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 3
push eax
mov dword [esp + 0x78], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov dword [ebp + 0x2c], esi
mov ecx, dword [edi + 0x18]
cdq
xor eax, edx
mov dword [esp + 0xac], 0x7d00
sub eax, edx
mov byte [esp + 0x90], 0
mov edx, dword [edi + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 3
add ecx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x84], eax
test ebx, ebx
jne 0x101263f7
cmp edx, ecx
jae 0x10126415
nop dword [eax]
movsx eax, word [edx + 0xc]
mov dword [edx + 0x18], eax
movsx eax, word [edx + 0xe]
mov dword [edx + 0x1c], eax
add edx, 0x28
cmp edx, ecx
jb 0x101263e0
jmp 0x10126415
cmp edx, ecx
jae 0x10126415
nop dword [eax + eax]
movsx eax, word [edx + 0xe]
mov dword [edx + 0x18], eax
movsx eax, word [edx + 0xc]
mov dword [edx + 0x1c], eax
add edx, 0x28
cmp edx, ecx
jb 0x10126400
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x8c]
jae 0x10126c1a
nop dword [eax]
mov ebx, dword [eax]
xor edi, edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x30], 0x7d00
mov dword [esp + 0x40], 0xffff8300
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x10], 0x7d00
mov dword [esp + 0x14], 0xffff8300
mov dword [esp + 0x48], 0
mov cl, byte [eax + 3]
movsx edx, cl
mov eax, edx
mov dword [esp + 0x44], 0
neg eax
mov dword [esp + 0x24], 0x7d00
test cl, cl
mov dword [esp + 0x1c], 0xffff8300
mov dword [esp + 0x34], edi
cmovns eax, edx
mov dword [esp + 0x54], 0x7d00
mov dword [esp + 0x38], 0xffff8300
mov dword [esp + 0x60], 0x7d00
mov dword [esp + 0x5c], 0xffff8300
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 0x7d00
mov dword [esp + 0x7c], 0xffff8300
cmp eax, dword [esp + 0x64]
jne 0x10126513
mov cl, byte [ebx + 3]
movsx edx, cl
mov eax, edx
neg eax
test cl, cl
cmovns eax, edx
cmp eax, dword [esp + 0x64]
jne 0x10126513
mov dword [esp + 0x68], ebx
nop dword [eax]
mov ebx, dword [ebx + 0x24]
mov cl, byte [ebx + 3]
movsx edx, cl
mov eax, edx
neg eax
test cl, cl
cmovns eax, edx
cmp eax, dword [esp + 0x64]
jne 0x10126510
cmp ebx, dword [esp + 0x68]
jne 0x101264f0
jmp 0x10126513
mov ebx, dword [ebx + 0x20]
mov edx, dword [esp + 0x40]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], ebx
mov byte [esp + 0x22], 0
nop word [eax + eax]
mov edi, dword [esp + 0x48]
movzx edi, di
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
test eax, eax
je 0x101269bb
mov ecx, dword [ebx + 0x18]
mov edi, ecx
cmp ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmovge edi, dword [esp + 0x30]
cmp ecx, edx
movzx eax, ax
cmovle ecx, edx
mov dword [esp + 0x30], edi
mov edx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
cmp dword [ebx + 0x1c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], edx
movzx edx, word [ebx]
mov ecx, edx
cmovge ecx, eax
movzx eax, cx
mov ecx, edx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
cmp eax, edi
cmovge eax, edi
mov edi, dword [ebx + 0x1c]
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
cmovle ecx, eax
movzx eax, cx
mov ecx, edi
cmovle ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
test dl, 3
jne 0x101265e6
mov eax, dword [ebx + 0x1c]
cmp eax, dword [esp + 0x24]
cmovge eax, dword [esp + 0x24]
mov edx, eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x24], edx
cmp eax, dword [esp + 0x1c]
jle 0x101265e6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
movsx eax, byte [ebx + 3]
mov edx, dword [esp + 0x28]
cmp eax, dword [esp + 0x84]
jne 0x10126613
mov eax, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x44], eax
movzx eax, dx
mov dword [esp + 0x48], eax
cmp ebx, dword [esp + 0x68]
jne 0x101269af
test edi, edi
je 0x101268e4
mov eax, dword [edi + 0x28]
cmp dword [esi + 0x24], eax
jne 0x101268e4
mov al, byte [eax + 2]
cmp al, byte [ebx + 2]
jne 0x1012675a
mov esi, dword [esp + 0x54]
mov ecx, esi
cmp esi, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
cmovge ecx, dword [esp + 0x18]
cmp esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
mov ecx, esi
cmovle ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x60], esi
mov dword [esp + 0x40], ecx
movzx ecx, ax
movzx eax, dx
cmovge ecx, eax
mov dword [edi + 0x28], ebx
movzx edx, cx
mov eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
cmovge eax, esi
mov esi, eax
mov eax, dword [esp + 0x74]
movzx ecx, ax
mov eax, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x5c], esi
cmovle ecx, eax
movzx eax, cx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
cmovle eax, esi
mov esi, eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x78]
mov ecx, esi
cmp esi, dword [esp + 0x24]
mov esi, dword [esp + 0x7c]
mov eax, esi
cmovge ecx, dword [esp + 0x24]
cmp esi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmovle eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x30]
sar eax, 1
mov word [edi + 2], ax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
sar eax, 1
mov word [edi + 4], ax
mov al, byte [esp + 0x18]
or al, dl
mov dword [esp + 0x24], ecx
test al, 3
je 0x10126715
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp eax, dword [esp + 0x6c]
jge 0x10126715
or byte [edi], 1
jmp 0x10126718
and byte [edi], 0xfe
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
movzx ecx, ax
movzx eax, si
mov word [edi + 8], ax
sub eax, ecx
mov word [edi + 0xa], ax
mov eax, dword [esp + 0x4c]
mov word [edi + 6], cx
dec dword [ebp + 0x2c]
movzx ecx, ax
mov eax, dword [esp + 0x18]
movzx esi, ax
xor eax, eax
mov dword [esp + 0x44], esi
xor esi, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
jmp 0x101269b7
mov eax, ecx
sub eax, dword [esp + 0x10]
cdq
mov ecx, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x60]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x101267eb
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x54]
cmp ecx, esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
cmovl esi, ecx
cmp edx, eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], ecx
cmovg eax, edx
mov dword [edi + 0x28], ebx
mov dword [esp + 0x38], eax
add eax, esi
sar eax, 1
mov word [edi + 2], ax
mov eax, dword [esp + 0x38]
sub eax, esi
sar eax, 1
mov word [edi + 4], ax
mov eax, dword [esp + 0x14]
dec dword [ebp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
movzx esi, ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
movzx ecx, ax
xor eax, eax
mov dword [esp + 0x44], esi
xor esi, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
jmp 0x101269b7
mov edx, dword [esp + 0x54]
mov ecx, edx
cmp edx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
cmovge ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
cmp edx, eax
mov dword [esp + 0x30], ecx
cmovle edx, eax
mov dword [esi + 0x28], ebx
lea eax, [edx + ecx]
sar eax, 1
mov word [esi + 2], ax
mov eax, edx
sub eax, ecx
sar eax, 1
mov word [esi + 4], ax
mov al, byte [esp + 0x2c]
or al, byte [esp + 0x28]
test al, 3
je 0x1012683e
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x6c]
jge 0x1012683e
or byte [esi], 1
mov eax, dword [esp + 0x10]
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov word [esi + 6], cx
movzx eax, ax
mov word [esi + 8], ax
sub eax, ecx
mov word [esi + 0xa], ax
movups xmm0, xmmword [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
movups xmmword [edi], xmm0
mov dword [esp + 0x14], ecx
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x38], edx
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x20], xmm0
mov eax, dword [esi + 0x28]
mov esi, dword [esp + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x30]
dec dword [ebp + 0x2c]
movzx esi, si
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x2c]
movzx edi, si
movzx ecx, si
mov dword [esp + 0x60], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
movzx ecx, ax
xor eax, eax
mov dword [esp + 0x78], edi
xor esi, esi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
jmp 0x101269b7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x28], ebx
lea eax, [ecx + edx]
sar eax, 1
mov word [esi + 2], ax
mov eax, ecx
sub eax, edx
sar eax, 1
mov word [esi + 4], ax
mov al, byte [esp + 0x2c]
or al, byte [esp + 0x28]
test al, 3
je 0x1012691f
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x6c]
jge 0x1012691f
or byte [esi], 1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
movzx ecx, ax
mov eax, dword [esp + 0x14]
movzx eax, ax
mov word [esi + 8], ax
sub eax, ecx
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
movzx edi, di
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], edx
mov edx, eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
movzx edi, di
movzx eax, ax
mov word [esi + 6], cx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
jmp 0x101269b7
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x68]
jne 0x101269d1
cmp byte [esp + 0x22], 0
jne 0x10126bfc
mov byte [esp + 0x22], 1
test eax, eax
jne 0x10126bf4
mov al, byte [ebx + 3]
mov byte [esp + 0x23], al
movsx eax, al
mov dword [esp + 0x18], eax
neg eax
cmp byte [esp + 0x23], 0
cmovge eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x64]
je 0x10126a02
cmp ebx, dword [ebx + 0x24]
jne 0x10126bf0
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor esi, esi
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], ecx
cmp eax, 0x12
jge 0x10126a3c
cmp dword [ebp + 0x34], ecx
jne 0x10126b0e
lea eax, [ebp + 0x48]
mov dword [ebp + 0x30], 0x12
mov dword [ebp + 0x34], eax
jmp 0x10126b0e
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jl 0x10126b0c
cmp ecx, 0x2e8ba2e
jl 0x10126a61
mov ecx, 0x40
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], ecx
jmp 0x10126b1b
mov eax, ecx
sar eax, 2
add eax, 4
add eax, ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x10126a7a
cmp eax, 0x2e8ba2e
jle 0x10126a83
mov eax, 0x2e8ba2e
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 0x34]
lea edi, [ebp + 0x48]
cmp edx, edi
jne 0x10126ad7
lea ecx, [esp + 0x58]
push ecx
push 0
push eax
push 0
push 0x2c
push dword [esp + 0x9c]
call fcn.1011f0f0
mov ecx, dword [esp + 0x70]
add esp, 0x18
mov dword [ebp + 0x34], eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x10126c74
mov esi, edi
mov ecx, 0xc6
mov edi, eax
mov eax, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [ebp + 0x30], eax
jmp 0x10126b0e
lea edi, [esp + 0x58]
push edi
push edx
push eax
push ecx
push 0x2c
push dword [esp + 0x9c]
call fcn.1011f0f0
mov ecx, dword [esp + 0x70]
add esp, 0x18
mov dword [ebp + 0x34], eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x10126c74
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x30], eax
jmp 0x10126b0e
mov ecx, esi
mov eax, dword [ebp + 0x2c]
imul esi, eax, 0x2c
add esi, dword [ebp + 0x34]
inc eax
mov dword [ebp + 0x2c], eax
test ecx, ecx
jne 0x10126c74
movups xmm0, xmmword [esp + 0x90]
mov ecx, dword [esp + 0x34]
lea edi, [esi - 0x2c]
mov al, byte [esp + 0x23]
test ecx, ecx
movups xmmword [esi], xmm0
cmove edi, ecx
movups xmm0, xmmword [esp + 0xa0]
mov dword [esp + 0x34], edi
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0xb0]
movq qword [esi + 0x20], xmm0
mov byte [esi + 1], al
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
movzx eax, word [ebx]
mov ecx, dword [ebx + 0x1c]
mov edi, eax
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x44], edi
movzx edi, di
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], edi
test al, 3
je 0x10126b9d
mov dword [esp + 0x24], 0x7d00
mov dword [esp + 0x1c], 0xffff8300
jmp 0x10126ba7
mov eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, 1
mov edi, dword [esp + 0x34]
mov dword [esp + 0x50], eax
cmp ebx, dword [ebx + 0x24]
jne 0x10126be4
mov word [esi + 2], dx
test byte [ebx], 3
je 0x10126bc4
or byte [esi], al
movzx eax, word [ebx + 0x1c]
mov word [esi + 6], ax
movzx eax, word [ebx + 0x1c]
mov word [esi + 8], ax
xor eax, eax
mov word [esi + 0xa], ax
xor esi, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x20]
jmp 0x10126530
mov eax, dword [esp + 0x50]
mov ebx, dword [ebx + 0x20]
jmp 0x10126530
mov eax, dword [esp + 0x80]
add eax, 4
mov dword [esp + 0x80], eax
cmp eax, dword [esp + 0x8c]
jb 0x10126430
imul ecx, dword [ebp + 0x2c], 0x2c
mov esi, dword [ebp + 0x34]
lea eax, [ecx + esi]
cmp esi, eax
jae 0x10126ca5
dec ecx
mov eax, 0xba2e8ba3
mul ecx
add esi, 0xa
mov ebx, edx
shr ebx, 5
inc ebx
nop dword [eax]
mov eax, dword [esi + 0x1a]
mov edi, dword [esi + 0x1e]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1c]
cmp edx, ecx
jge 0x10126c81
cmp eax, edx
jge 0x10126c61
sub edx, eax
sar edx, 1
add word [esi], dx
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
cmp eax, ecx
jle 0x10126c9d
sub eax, ecx
sar eax, 1
add word [esi], ax
jmp 0x10126c9d
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xac
ret
cmp eax, edx
jle 0x10126c8c
sub eax, edx
sar eax, 1
add word [esi], ax
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
cmp eax, ecx
jge 0x10126c9d
sub ecx, eax
sar ecx, 1
add word [esi], cx
add esi, 0x2c
sub ebx, 1
jne 0x10126c40
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret