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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x1018f074]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x250]
mov esi, dword [esp + 0x254]
mov dword [esp + 0x68], edi
mov dword [esp + 0x40], esi
mov eax, dword [edi]
lea ecx, [edi + 0x2678]
mov dword [esp + 0x84], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0xc]
lea ebx, [eax*8 + 0x10106900]
mov eax, 0x24924925
mul ecx
mov eax, dword [ebx]
sub ecx, edx
mov dword [esp + 0x14], ebx
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0x80], ecx
cmp eax, 0x159b
je 0x10068ab7
nop word [eax + eax]
lea ecx, [eax + 0x10105360]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x5c], edi
test al, al
je 0x10068a9a
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x10068266
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x10068260
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x70]
push ecx
call fcn.10069f40
mov edx, dword [esp + 0x7c]
add esp, 0x10
mov ecx, eax
mov dword [esp + 0x64], ecx
test edx, edx
je 0x100688ef
test byte [ebx + 4], 1
mov eax, 0
mov dword [esp + 0x20], 0
setne al
add eax, 0x7fffffff
test edx, edx
je 0x10068610
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
nop dword [eax]
mov byte [esp + 0x12], 0
test edx, edx
je 0x100685f9
push 1
push edx
push esi
call fcn.1005a5b0
mov ecx, dword [esi + 0x54]
add esp, 0xc
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x98], ecx
movups xmmword [esp + 0x88], xmm0
test eax, eax
jne 0x100685ed
mov ecx, dword [esp + 0x88]
mov eax, ecx
shr eax, 0x10
cmp ax, 2
jle 0x100685ed
movsx esi, cx
xor edi, edi
mov dword [esp + 0x28], esi
xor eax, eax
mov ecx, dword [esp + 0x28]
xor esi, esi
or ebx, 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
test ecx, ecx
jle 0x1006888d
mov edx, dword [esp + 0x94]
movsx esi, word [edx + esi*2]
mov dword [esp + 0x44], ebx
cmp esi, eax
jle 0x100683e8
mov ecx, dword [esp + 0x14]
mov edx, eax
test byte [ecx + 4], 3
mov ecx, dword [esp + 0x8c]
lea ecx, [ecx + eax*8]
jne 0x1006839d
add ecx, 4
nop dword [eax]
test ebx, ebx
js 0x10068382
mov eax, dword [ecx]
cmp eax, edi
jl 0x10068382
cmp ebp, eax
jg 0x10068393
mov ebp, eax
jmp 0x10068393
mov eax, dword [esp + 0x5c]
mov ebx, edx
mov edi, dword [ecx]
cmp eax, edi
cmovge eax, edi
mov dword [esp + 0x5c], eax
inc edx
add ecx, 8
cmp edx, esi
jle 0x10068370
jmp 0x100683c7
add ecx, 4
test ebx, ebx
js 0x100683b6
mov eax, dword [ecx]
cmp eax, edi
jg 0x100683b6
cmp dword [esp + 0x5c], eax
jl 0x100683bf
mov dword [esp + 0x5c], eax
jmp 0x100683bf
mov edi, dword [ecx]
mov ebx, edx
cmp ebp, edi
cmovle ebp, edi
inc edx
add ecx, 8
cmp edx, esi
jle 0x100683a0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x2c], ebp
cmp ebx, dword [esp + 0x44]
je 0x100683e8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], esi
lea eax, [esi + 1]
mov esi, dword [esp + 0x48]
inc esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
cmp esi, ecx
jl 0x10068343
test ebx, ebx
js 0x1006888d
mov eax, dword [esp + 0x8c]
or edx, 0xffffffff
mov esi, dword [esp + 0x90]
mov ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x48], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove edx, ebx
mov ebp, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebp
nop dword [eax]
cmp ecx, dword [esp + 0x4c]
jle 0x10068459
dec ecx
jmp 0x1006845d
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + ecx*8 + 4]
mov eax, edx
sub eax, edi
jns 0x10068472
mov eax, edi
sub eax, edx
cmp eax, 5
jle 0x100684b0
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x8c]
mov ebp, dword [edx + ecx*8]
mov edx, ebp
sub edx, dword [esi + ebx*8]
mov esi, dword [esp + 0x90]
jns 0x100684a2
mov edx, dword [esp + 0x8c]
mov edx, dword [edx + ebx*8]
sub edx, ebp
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x100684ce
mov ebp, dword [esp + 0x54]
mov al, byte [ecx + esi]
and al, 3
mov dword [esp + 0x1c], ecx
cmp al, 1
jne 0x100684ca
test ebp, ebp
mov dword [esp + 0x50], ecx
cmovs ebp, ecx
mov dword [esp + 0x54], ebp
cmp ecx, ebx
jne 0x10068450
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jge 0x100684db
inc esi
jmp 0x100684df
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + esi*8 + 4]
lea edx, [eax + esi*8]
mov eax, ecx
mov dword [esp + 0x7c], edx
sub eax, edi
jns 0x100684fb
mov eax, edi
sub eax, ecx
mov ebp, dword [esp + 0x38]
cmp eax, 5
jle 0x1006851a
mov edx, dword [edx]
mov ecx, edx
sub ecx, ebp
jns 0x10068510
mov ecx, ebp
sub ecx, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, eax
jle 0x10068543
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], esi
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1006853f
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x54], esi
cmovs eax, esi
mov dword [esp + 0x50], eax
cmp esi, ebx
jne 0x100684d2
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 4]
test al, 0x10
je 0x1006881f
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x8c]
shr edx, 3
mov dword [esp + 0x74], edx
mov esi, dword [ecx + esi*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, esi
sub esi, eax
test ecx, ecx
cmovns esi, ecx
cmp esi, edx
mov esi, dword [esp + 0x28]
jge 0x10068823
mov eax, dword [esp + 0x3c]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
add ecx, 2
sub eax, edx
cmp ecx, eax
jg 0x10068823
shr dword [esp + 0x48], 2
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
mov eax, ebx
cmp eax, edx
jle 0x100685cb
dec eax
jmp 0x100685cf
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + eax*8]
cmp ecx, ebp
jne 0x10068646
cmp eax, ebx
jne 0x100685c4
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x6c]
jb 0x100682c0
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
cmp eax, 0x80000000
je 0x100688ef
cmp eax, 0x7fffffff
je 0x100688ef
cmp byte [esp + 0x13], 0
mov edx, dword [esp + 0x34]
je 0x100688e1
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x70], edi
jmp 0x100688f3
cmp eax, ebx
je 0x100685e1
cmp ecx, ebp
mov ebp, dword [esp + 0x1c]
mov ecx, esi
setl dh
mov dword [esp + 0x58], ecx
xor al, al
mov byte [esp + 0x1b], dh
mov byte [esp + 0x12], al
test al, al
jne 0x10068690
mov eax, dword [esp + 0x90]
or ebx, 0xffffffff
mov ecx, esi
mov byte [esp + 0x12], 1
mov dword [esp + 0x58], ecx
mov al, byte [esi + eax]
and al, 3
cmp al, 1
cmove ebx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
jmp 0x10068694
mov ebx, dword [esp + 0x44]
cmp esi, dword [esp + 0x3c]
jge 0x1006869d
inc esi
jmp 0x100686a1
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x78], ecx
jns 0x100686ba
mov eax, ecx
sub eax, edi
cmp eax, dword [esp + 0x48]
jle 0x100686cb
xor al, al
mov byte [esp + 0x12], al
jmp 0x1006876d
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + esi*8 + 4]
mov ebp, eax
sub ebp, ecx
jns 0x100686e0
mov ebp, ecx
sub ebp, eax
cmp ebp, 5
jle 0x1006871d
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x58]
mov eax, dword [ecx + esi*8]
mov edx, dword [ecx + edx*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [ebp*4]
cmovns edx, ecx
add eax, ebp
shl eax, 2
cmp edx, eax
mov dh, byte [esp + 0x1b]
jg 0x1006871d
xor al, al
mov byte [esp + 0x12], al
jmp 0x10068769
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x1006873a
test ebx, ebx
mov dword [esp + 0x38], esi
cmovs ebx, esi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x58]
mov ecx, dword [ebx + esi*8]
mov ebx, dword [ebx + eax*8]
cmp ebx, ecx
mov eax, ecx
setl dl
sub eax, ebx
sub ebx, ecx
test eax, eax
cmovns ebx, eax
cmp dl, dh
jne 0x10068765
cmp ebx, dword [esp + 0x74]
jge 0x1006877e
mov al, byte [esp + 0x12]
mov ebp, dword [esp + 0x1c]
cmp esi, ebp
je 0x10068819
mov ecx, dword [esp + 0x58]
jmp 0x10068663
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jge 0x1006878f
inc esi
jmp 0x10068793
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + esi*8 + 4]
mov eax, ecx
sub eax, edi
jns 0x100687a8
mov eax, edi
sub eax, ecx
cmp eax, 5
jle 0x100687d3
mov eax, dword [esp + 0x58]
mov edx, dword [edx + eax*8]
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
sub ecx, edx
sub edx, dword [eax]
test ecx, ecx
lea eax, [ebp*4]
cmovns edx, ecx
add eax, ebp
shl eax, 2
cmp edx, eax
jle 0x100687fa
mov eax, dword [esp + 0x90]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x100687f0
mov eax, dword [esp + 0x44]
test eax, eax
cmovs eax, esi
mov dword [esp + 0x44], eax
mov ebx, esi
cmp esi, dword [esp + 0x1c]
je 0x1006880f
jmp 0x10068786
cmp esi, dword [esp + 0x4c]
jle 0x1006880b
mov ebp, dword [esp + 0x58]
dec esi
mov edx, dword [esp + 0x44]
jmp 0x1006882f
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
jmp 0x1006882f
mov esi, dword [esp + 0x28]
jmp 0x10068827
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test edx, edx
js 0x10068858
test ebx, ebx
js 0x10068858
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + ebx*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
cmovns edx, ecx
cmp edx, dword [esp + 0x80]
jg 0x10068888
mov ecx, dword [esp + 0x90]
mov al, byte [ecx + ebp]
and al, 3
cmp al, 1
jne 0x10068871
mov al, byte [ecx + esi]
and al, 3
cmp al, 1
je 0x10068888
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x12], 1
movzx eax, word [ebx + 4]
test al, 4
jne 0x100685e5
jmp 0x10068891
mov byte [esp + 0x12], 0
mov ebx, dword [esp + 0x14]
test byte [ebx + 4], 1
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
je 0x100688c2
mov ecx, dword [esp + 0x20]
cmp edi, eax
jle 0x100685f5
mov dl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], dl
jmp 0x100685f5
mov edx, dword [esp + 0x24]
cmp edi, eax
jge 0x100688d8
mov cl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x20]
jmp 0x100685f9
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x34], edx
jmp 0x100688f3
mov edx, dword [esp + 0x34]
mov al, byte [ecx]
test al, al
jne 0x10068250
mov ebx, dword [esp + 0x5c]
mov eax, edi
test edx, edx
jne 0x10068913
mov dword [esp + 0x34], edx
test eax, eax
je 0x10068a96
mov esi, 1
cmp edi, esi
jbe 0x1006895e
nop dword [eax]
mov eax, esi
test esi, esi
je 0x10068955
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x10068955
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x10068930
inc esi
cmp esi, edi
jb 0x10068920
mov edx, dword [esp + 0x34]
mov esi, 1
cmp edx, esi
jbe 0x100689d5
mov eax, esi
test esi, esi
je 0x10068999
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x10068995
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x10068970
mov edx, dword [esp + 0x34]
inc esi
cmp esi, edx
jb 0x10068967
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
shr edx, 1
mov eax, dword [esp + edx*4 + 0x17c]
test edi, edi
jne 0x10068a0c
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10068a1a
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
test edx, edx
jne 0x100689c1
shr edi, 1
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10068a1a
shr edi, 1
mov dword [esi], eax
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
cmp edi, edx
je 0x10068a4b
mov eax, dword [esp + 0x14]
mov ecx, 0
test byte [eax + 4], 3
setne cl
xor eax, eax
cmp edi, edx
setg al
cmp eax, ecx
je 0x10068a4b
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov dword [esi + 0x1c], ebx
xor eax, eax
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x20], 0
test byte [ebx + 4], 1
je 0x10068a70
mov dword [esi + 0x20], 2
mov eax, 2
test byte [ebx + 4], 2
je 0x10068a7c
or eax, 4
mov dword [esi + 0x20], eax
test byte [ebx + 4], 4
je 0x10068a88
or eax, 8
mov dword [esi + 0x20], eax
test byte [ebx + 4], 8
je 0x10068a9a
or eax, 0x10
mov dword [esi + 0x20], eax
jmp 0x10068a9a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
add ebx, 8
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
cmp eax, 0x159b
jne 0x10068220
mov edi, dword [esp + 0x68]
mov ebp, dword [edi + 0x2750]
lea esi, [edi + 0x2678]
test ebp, ebp
je 0x10068b8b
xor eax, eax
test ebp, ebp
je 0x10068aef
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x88], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10068ae0
mov ebx, 1
cmp ebp, ebx
jbe 0x10068b4a
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x10068b13
mov esi, dword [eax]
jmp 0x10068b16
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x10068b27
mov edi, dword [ecx]
jmp 0x10068b2a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10068b41
mov dword [esp + edx*4 + 0x88], eax
mov dword [esp + edx*4 + 0x84], ecx
sub edx, 1
jne 0x10068b02
inc ebx
cmp ebx, ebp
jb 0x10068b00
mov esi, dword [esp + 0x60]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x10068b87
mov eax, dword [esp + edx*4 + 0x88]
test byte [eax + 0x20], 6
je 0x10068b63
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x8c]
test byte [ecx + 0x20], 6
je 0x10068b73
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10068b7b
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x10068b53
xor eax, eax
jmp 0x10068bbe
mov edx, dword [edi + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x10068bb9
mov edi, dword [esp + 0x84]
lea ebx, [ecx + 0x42]
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x10068bb3
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x10068ba2
mov eax, 1
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0b93
add esp, 0x23c
ret