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

Disassembly:
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xc0]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], eax
push esi
mov esi, dword [esp + 0xc0]
push edi
lea eax, [esi + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x34]
imul ecx, eax, 0x48
mov eax, dword [esi + 4]
add eax, 8
add eax, ecx
mov dword [esp + 0x68], eax
mov eax, dword [eax + 0x2c]
push eax
mov dword [esp + 0x28], eax
lea eax, [esi + 0x1e8]
push eax
call fcn.10166c90
not eax
not edx
and eax, dword [esp + 0xd8]
and edx, dword [esp + 0xdc]
pop ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov esi, dword [esp + 0xcc]
pop ecx
mov ecx, esi
call fcn.10236b10
mov edi, dword [esp + 0xc0]
xor ecx, ecx
mov edx, dword [esp + 0x68]
inc ecx
and eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x38]
dec eax
mov dword [ebp + 0x38], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x38]
dec eax
mov dword [ebp + 0x38], eax
cmp byte [ebx + 0x34], 0
mov dword [esp + 0x70], eax
mov dword [ebx + 0x18], eax
jbe 0x10164bf3
test byte [edx + 0x24], 8
je 0x10164bf3
mov eax, dword [ebp + 0x2c]
inc eax
push eax
push 0
push 0x45
mov dword [ebp + 0x2c], eax
push edi
mov dword [ebx], eax
call fcn.101596d3
mov edx, dword [esp + 0x78]
add esp, 0x10
mov ebp, dword [esp + 0xc4]
mov ecx, esi
test esi, esi
jle 0x10164c17
imul eax, esi, 0x58
add eax, 0x2f0
add eax, ebp
cmp dword [eax], 0
jne 0x10164c17
dec ecx
sub eax, 0x58
test ecx, ecx
jg 0x10164c0a
imul eax, ecx, 0x58
test byte [edx + 0x28], 0x10
mov ebp, dword [eax + ebp + 0x2fc]
mov dword [esp + 0x30], ebp
je 0x10164c5a
push dword [edx + 0x18]
mov esi, dword [edx + 0x1c]
push 0
push esi
push 0xd
push edi
call fcn.10237091
push dword [esp + 0x54]
push esi
push 0xe
push edi
call fcn.101596d3
add esp, 0x24
mov dword [ebx + 0x3c], eax
push 0xb
pop eax
mov byte [ebx + 0x35], al
jmp 0x10165f5c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
bt edx, 0xa
jae 0x10164eb9
movzx edi, word [eax + 0x28]
lea eax, [edi + 2]
push eax
push dword [esp + 0xc0]
call fcn.10149ba4
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
xor esi, esi
mov dword [esp + 0x18], ecx
mov ebp, eax
test edi, edi
je 0x10164ce9
lfence
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10164ce4
xor edx, edx
lea ecx, [ebp + 2]
inc edx
add ecx, esi
test byte [eax + 0xc], dl
je 0x10164cce
push ecx
push dword [esp + 0x2c]
push esi
push ebx
push eax
push dword [esp + 0xd0]
call fcn.10124ee0
mov eax, dword [ebx + 0x10]
add esp, 0x18
mov dword [esp + 0x18], eax
jmp 0x10164ce4
mov eax, dword [eax]
push edx
push ecx
push dword [eax + 0x10]
push dword [esp + 0xc8]
call fcn.10237091
add esp, 0x10
inc esi
cmp esi, edi
jl 0x10164c93
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xc0]
push ebp
push dword [eax + 0x18]
push 0x45
push esi
call fcn.101596d3
lea eax, [ebp + 1]
push eax
push edi
push 0x45
push esi
call fcn.101596d3
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
push 0xfffffffffffffff9
pop edx
cmp byte [ecx + 0x1c], 0
cmovne eax, edx
push eax
push dword [ecx + 0x20]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x54]
push 9
push esi
call fcn.10237091
mov edx, dword [esp + 0x58]
add esp, 0x3c
mov eax, dword [esp + 0x60]
mov byte [edx + 0x1c], 0
cmp byte [eax + 0x51], 0
je 0x10164d4c
and dword [edx + 0x20], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc4]
mov dword [ebx + 0x38], eax
push 0x3d
pop eax
cmp byte [ecx + 0x2e], 0
lea ecx, [eax + 0x71]
cmovne eax, ecx
mov byte [ebx + 0x35], al
mov eax, dword [esi + 0x6c]
lea esi, [edi - 1]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], eax
test esi, esi
js 0x10165f5c
lea ecx, [esi + 2]
add ecx, ebp
mov ebp, dword [esp + 0xc0]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 0x30]
mov edx, dword [eax + esi*4]
xor eax, eax
inc eax
mov dword [esp + 0x30], edx
mov di, word [edx + 0xc]
and di, ax
mov eax, dword [esp + 0x20]
lea eax, [eax - 1]
cmove eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp esi, 0x10
jae 0x10164de0
mov eax, dword [esp + 0x1c]
mov cx, si
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x10164ddc
push edx
push ebx
call fcn.10127d07
jmp 0x10164e9c
mov ecx, dword [esp + 0x14]
test di, di
je 0x10164ea2
mov eax, dword [edx]
push dword [eax + 0xc]
call fcn.101468a1
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10164e9e
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x51], 0
jne 0x10164e31
imul ecx, dword [esp + 0x20], 0x14
mov eax, dword [ebx + 0x44]
push dword [ecx + eax + 4]
push ebp
call fcn.1015fcbe
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
movzx eax, byte [eax]
push eax
push ebp
call fcn.10237091
add esp, 0x1c
xor eax, eax
push eax
push eax
push 0x35
push dword [esp + 0xc8]
call fcn.10237091
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10164e9e
mov ecx, dword [esp + 0x30]
push 0
push 0xad
push dword [esp + 0x68]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0xc], ecx
call fcn.10237091
add esp, 0xc
mov dword [edi + 0x10], eax
test eax, eax
je 0x10164e8e
mov ecx, dword [esp + 0x14]
push 0x10
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push edi
push dword [esp + 0xc8]
call fcn.10145a70
add esp, 0x10
and dword [edi + 0xc], 0
push edi
push dword [esp + 0x64]
call fcn.10145850
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
dec ecx
sub esi, 1
mov dword [esp + 0x14], ecx
jns 0x10164d92
jmp 0x10165f5c
test dl, 5
setne cl
bt edx, 8
setb al
test al, cl
je 0x10164f45
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
mov eax, dword [esp + 0xbc]
inc dword [eax + 0x2c]
mov edi, dword [eax + 0x2c]
push edi
push dword [esp + 0x2c]
push 0
push ebx
push esi
push eax
call fcn.10124ee0
mov ebp, eax
add esp, 0x18
cmp ebp, edi
je 0x10164f07
push edi
push dword [esp + 0xc0]
call fcn.10152995
pop ecx
pop ecx
push ebp
push dword [ebx + 0x10]
mov ebp, dword [esp + 0xc8]
push dword [esp + 0x2c]
push 0x1f
push ebp
call fcn.10237091
mov byte [ebx + 0x35], 0xae
add esp, 0x14
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x50]
and eax, dword [ebx + 0x54]
or ecx, eax
jne 0x10165f5c
push 4
pop ebp
or word [esi + 0xa], bp
jmp 0x10165f5c
mov ecx, 0x102
mov eax, edx
and eax, ecx
cmp eax, ecx
jne 0x1016514d
xor eax, eax
mov dword [esp + 0x18], 0xae
mov dword [esp + 0x64], eax
mov esi, eax
mov ecx, eax
test dl, 0x20
je 0x10164f7b
mov eax, dword [esp + 0x1c]
push 4
pop ebp
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
jmp 0x10164f7d
mov ebp, eax
test dl, 0x10
je 0x10164f8c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + ebp]
mov eax, dword [esp + 0x28]
mov ebp, ecx
test eax, eax
cmove ebp, esi
cmove esi, ecx
test esi, esi
je 0x1016504e
mov edi, dword [esi]
mov dword [esp + 0x2c], 0x18161719
push dword [edi + 0x10]
call fcn.101468a1
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x10164ff2
mov edx, dword [esp + 0xbc]
push edx
call fcn.10149be5
mov esi, eax
xor eax, eax
inc eax
mov dword [esp + 0x3c], esi
push eax
push esi
push dword [edi + 0x10]
push edx
call fcn.10237091
movzx ecx, byte [edi]
add esp, 0x14
xor eax, eax
inc ecx
inc eax
and ecx, 2
or ecx, eax
mov al, byte [esp + ecx + 0x2c]
jmp 0x1016501f
lea eax, [esp + 0x30]
push eax
push dword [edi + 0x10]
push dword [esp + 0xc4]
call fcn.10237091
push esi
push ebx
mov dword [esp + 0x4c], eax
call fcn.10127d07
movzx ecx, byte [edi]
add esp, 0x14
mov esi, dword [esp + 0x30]
mov al, byte [esp + ecx - 0xa]
push dword [esp + 0x38]
mov edi, dword [esp + 0xc4]
push dword [esp + 0x44]
movzx eax, al
push dword [esp + 0x2c]
push eax
push edi
call fcn.10237091
push esi
push dword [esp + 0xd4]
call fcn.10152995
add esp, 0x1c
jmp 0x1016506c
push dword [esp + 0x30]
xor ecx, ecx
push dword [esp + 0x28]
inc ecx
xor eax, ecx
lea eax, [eax*4 + 0x21]
push eax
push edi
call fcn.101596d3
add esp, 0x10
test ebp, ebp
je 0x101650e9
mov ecx, dword [esp + 0xbc]
xor edx, edx
mov esi, dword [ebp]
inc edx
push edx
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
push eax
push dword [esi + 0x10]
mov dword [esp + 0x70], eax
push ecx
call fcn.10237091
push dword [esi + 0x10]
call fcn.101468a1
xor ecx, ecx
add esp, 0x14
inc ecx
cmp eax, ecx
jg 0x101650c1
mov al, byte [esi]
cmp al, 0x38
je 0x101650ae
cmp al, 0x36
jne 0x101650c1
mov eax, dword [esp + 0x28]
xor eax, ecx
lea edx, [eax*2 + 0x37]
mov dword [esp + 0x18], edx
jmp 0x101650d0
mov eax, dword [esp + 0x28]
lea eax, [eax*2 + 0x36]
mov dword [esp + 0x18], eax
push dword [esi + 0x10]
call fcn.101468a1
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x101650e9
push ebp
push ebx
call fcn.10127d07
pop ecx
pop ecx
cmp dword [esp + 0x28], 0
mov ecx, dword [edi + 0x6c]
mov ebp, dword [esp + 0x18]
sete al
mov edx, dword [esp + 0x24]
add al, 4
mov byte [ebx + 0x35], al
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp ebp, 0xae
je 0x10165f5c
mov eax, dword [esp + 0xbc]
inc dword [eax + 0x2c]
mov esi, dword [eax + 0x2c]
push esi
push edx
push 0x80
push edi
call fcn.101596d3
push esi
push dword [esp + 0x54]
push dword [esp + 0x7c]
push ebp
push edi
call fcn.10237091
push 0x53
push edi
call fcn.10159a50
add esp, 0x2c
jmp 0x10165f5c
test edx, 0x200
je 0x1016595e
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 0x18]
movzx ebp, word [ecx + 0x1a]
movzx esi, word [ecx + 0x1c]
mov dword [esp + 0x58], eax
mov eax, ebp
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x13], al
mov byte [esp + 0x5f], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], esi
mov esi, eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x20], esi
mov ecx, eax
mov dword [esp + 0x34], eax
test dl, 0x20
je 0x101651d0
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov dword [esp + 0x20], ebp
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [esp + 0x4c], eax
test dl, 0x10
je 0x10165296
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x30]
movzx ebp, word [ebp + 0x1c]
cmp esi, ebp
mov ecx, dword [eax + ecx*4]
cmova ebp, esi
mov eax, edx
mov dword [esp + 0x50], ecx
mov edx, 0x100
test word [ecx + 0xa], dx
je 0x10165251
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x2c]
inc eax
push eax
mov dword [ecx + 0x2c], eax
mov dword [ebx + 0x2c], eax
xor eax, eax
inc eax
push eax
push 0x45
push edi
call fcn.101596d3
mov eax, dword [edi + 0x6c]
xor ecx, ecx
shl dword [ebx + 0x2c], 1
add esp, 0x10
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
mov eax, dword [esp + 0x1c]
sete cl
xor ecx, dword [esp + 0x28]
or dword [ebx + 0x2c], ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x4c], 0
mov edx, eax
mov esi, ebp
jne 0x1016529a
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 4]
movsx esi, word [eax + ecx*2]
test esi, esi
js 0x10165283
mov eax, dword [edx + 0xc]
imul ecx, esi, 0x14
mov eax, dword [eax + 4]
cmp byte [eax + ecx + 0xc], 0
je 0x101653a6
mov eax, dword [esp + 0x18]
mov edx, eax
mov dword [esp + 0x20], ebp
cmp esi, 0xfffffffe
je 0x101653aa
mov esi, dword [esp + 0x20]
xor ecx, ecx
inc ecx
mov ebp, dword [esp + 0xbc]
and edx, 0x80030
cmp edx, 0x80000
jne 0x101652e1
inc dword [ebp + 0x2c]
xor eax, eax
mov esi, ecx
mov byte [esp + 0x13], cl
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x24], ecx
cmp dword [ebx], eax
je 0x101652d8
push ecx
push eax
push 0x45
push edi
call fcn.101596d3
add esp, 0x10
dec dword [ebp + 0x38]
mov eax, dword [ebp + 0x38]
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
movzx edx, word [ecx + 0x32]
cmp ax, dx
jae 0x10165312
mov eax, dword [ecx + 0x1c]
xor ecx, ecx
mov edi, dword [esp + 0x34]
cmp byte [edi + eax], cl
mov edi, dword [esp + 0xc0]
sete cl
cmp dword [esp + 0x28], ecx
je 0x1016531e
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x28], 0
je 0x10165351
cmp dx, ax
jne 0x10165351
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov al, byte [esp + 0x13]
mov byte [esp + 0x5f], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
movzx ecx, dx
movzx eax, al
mov byte [esp + 0x13], 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
push esi
push dword [esp + 0x30]
push ebx
push ebp
call fcn.10124974
mov esi, dword [esp + 0x48]
mov edx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov dword [esp + 0x44], edx
test eax, eax
je 0x10165396
cmp word [esp + 0x64], 0
je 0x10165396
lea ecx, [esi + eax]
push ecx
push dword [esp + 0x64]
call fcn.10141d69
mov edx, dword [esp + 0x4c]
pop ecx
pop ecx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x14], 0
je 0x101653ba
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x2c], ecx
jmp 0x101653c1
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, eax
inc ecx
mov esi, ebp
mov byte [esp + 0x13], cl
jmp 0x1016529d
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x101653d7
test byte [eax + 0xc], 0x28
jne 0x101653d7
xor ecx, ecx
mov dword [esp + 0x20], ecx
jmp 0x101653e0
xor ecx, ecx
inc ecx
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x101653f2
test byte [ebp + 0xc], 0x28
mov dword [esp + 0x18], ecx
je 0x101653fa
mov dword [esp + 0x18], 1
test eax, eax
jne 0x1016541c
cmp word [esp + 0x58], ax
ja 0x1016541c
mov ebp, ecx
mov al, byte [esp + 0x13]
test al, al
je 0x101654c4
mov dword [esp + 0x20], ecx
jmp 0x101654cb
xor ebp, ebp
inc ebp
test eax, eax
je 0x10165407
mov eax, dword [eax]
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x54]
movzx ecx, ax
mov eax, dword [esp + 0x34]
push ecx
add eax, edx
push eax
push ebp
push dword [esp + 0xc8]
call fcn.10237091
push dword [esp + 0x5c]
push ebx
push edi
call fcn.1016f71f
push ebp
call fcn.10143ac2
add esp, 0x20
test eax, eax
je 0x10165474
push dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x48]
push eax
push 0x32
push edi
call fcn.101596d3
add esp, 0x10
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10165492
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
push eax
movzx eax, cx
push eax
push ebp
call fcn.10169f38
add esp, 0xc
mov ecx, dword [esp + 0x54]
movzx eax, cx
push ebp
add esi, eax
call fcn.101468a1
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x101654ba
push dword [esp + 0x4c]
push ebx
call fcn.10127d07
pop ecx
pop ecx
xor ecx, ecx
inc ecx
jmp 0x101654be
mov dword [esp + 0x20], ecx
xor al, al
mov ebp, ecx
jmp 0x101654e8
cmp dword [esp + 0x14], 0
je 0x101654e8
mov eax, dword [esp + 0x34]
add eax, edx
push eax
push ecx
push 0x48
push edi
call fcn.101596d3
xor eax, eax
add esp, 0x10
inc esi
lea ebp, [eax + 1]
mov al, byte [esp + 0x13]
push dword [esp + 0x38]
movzx ecx, al
mov eax, esi
sub eax, ecx
mov dword [esp + 0x58], ecx
push eax
push dword [esp + 0x4c]
push dword [esp + 0xc8]
call fcn.10237091
mov eax, dword [esp + 0x2c]
add esp, 0x10
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x10165520
cmp esi, eax
je 0x101655e6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10165538
push eax
xor eax, eax
inc eax
push eax
push 0x45
push edi
call fcn.101596d3
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
lea eax, [eax + ebp*2]
movzx ebp, byte [ecx + eax*2 + 0x10280344]
mov eax, dword [esp + 0x1c]
test dword [eax + 0x24], 0x100000
je 0x10165580
cmp ebp, 0x18
jne 0x10165580
mov eax, dword [esp + 0x48]
push 0xa
pop ecx
mov eax, dword [eax + 8]
movsx eax, word [eax]
add eax, 9
cdq
idiv ecx
push eax
push 0x76
push edi
call fcn.101596ba
add esp, 0xc
mov dword [esp + 0x30], eax
push esi
push dword [esp + 0x48]
push dword [esp + 0x34]
push dword [esp + 0x48]
push ebp
push edi
call fcn.10237091
add esp, 0x18
cmp dword [esp + 0x14], 0
je 0x101655e6
mov eax, dword [edi + 0x6c]
add eax, 2
push eax
push 0
push 0xb
pop eax
push eax
push edi
call fcn.101596d3
mov ecx, dword [esp + 0x38]
mov eax, esi
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x58]
xor eax, eax
push dword [esp + 0x44]
inc eax
push dword [esp + 0x58]
cmp eax, esi
push 4
sbb eax, eax
pop ebp
and eax, ebp
movzx eax, byte [eax + ecx + 0x10280346]
push eax
push edi
call fcn.10237091
add esp, 0x28
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
mov ebp, edx
test eax, eax
je 0x1016573a
mov ecx, dword [esp + 0x64]
mov eax, dword [eax]
movzx esi, cx
mov ecx, dword [esp + 0x44]
push esi
mov eax, dword [eax + 0x10]
add ecx, edx
push ecx
push eax
push dword [esp + 0xc8]
mov dword [esp + 0x68], eax
call fcn.10237091
push dword [esp + 0x60]
push ebx
push edi
call fcn.1016f71f
push dword [esp + 0x74]
call fcn.10143ac2
add esp, 0x20
test eax, eax
je 0x1016564e
push dword [esp + 0x2c]
mov eax, ebp
add eax, dword [esp + 0x48]
push eax
push 0x32
push edi
call fcn.101596d3
add esp, 0x10
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1016567c
push eax
push esi
push dword [esp + 0x60]
call fcn.10169f38
push dword [esp + 0x4c]
mov eax, ebp
add eax, dword [esp + 0x54]
push esi
push eax
push dword [esp + 0xd4]
call fcn.10237091
add esp, 0x1c
push dword [esp + 0x58]
add ebp, esi
call fcn.101468a1
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x10165731
push dword [esp + 0x50]
push ebx
call fcn.10127d07
pop ecx
pop ecx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x101656b7
push eax
push dword [esp + 0x64]
call fcn.10141a5b
pop ecx
pop ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x101656cb
push eax
push dword [esp + 0x64]
call fcn.10141a5b
pop ecx
pop ecx
mov eax, dword [edi + 0x6c]
mov dword [ebx + 0x3c], eax
test ebp, ebp
je 0x1016576a
test esi, esi
je 0x101656f0
mov eax, dword [edi + 0x6c]
add eax, 3
push eax
push esi
push 0x14
push edi
call fcn.101596d3
add esp, 0x10
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push ebp
push esi
push dword [esp + 0x34]
movzx eax, byte [eax + ecx*2 + 0x1028034c]
push dword [esp + 0x48]
push eax
push edi
call fcn.10237091
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
je 0x1016576e
push eax
push edi
call fcn.1015fcbe
pop ecx
pop ecx
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
jmp 0x1016576e
mov dword [esp + 0x18], ecx
jmp 0x1016569f
cmp byte [esp + 0x5f], 0
je 0x1016569f
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x10165764
mov eax, dword [esp + 0x44]
add eax, edx
push eax
push esi
push 0x48
push edi
call fcn.101596d3
add esp, 0x10
and dword [esp + 0x18], esi
inc ebp
jmp 0x101656a3
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x101657b0
mov eax, dword [edi + 0x6c]
add eax, 2
push eax
push ecx
push 0x12
push edi
call fcn.101596d3
mov ecx, dword [esp + 0x64]
lea eax, [ecx + ebp]
mov ebp, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x3c]
push esi
push dword [esp + 0x44]
movzx eax, byte [ecx + eax*2 + 0x1028034c]
push ebp
push eax
push edi
call fcn.10237091
add esp, 0x28
jmp 0x101657b4
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x24]
test eax, 0x40000
je 0x101657d7
mov eax, dword [esp + 0x34]
push eax
push eax
push ebp
push 0x77
push edi
call fcn.10237091
mov eax, dword [esi + 0x24]
add esp, 0x14
test al, 0x40
je 0x101657fa
mov eax, dword [esp + 0xc4]
test byte [eax + 0x28], 0x20
jne 0x101657fa
mov edx, dword [esp + 0x48]
xor ecx, ecx
lea ebp, [ecx + 1]
mov ecx, dword [esp + 0x24]
jmp 0x101658e1
mov edx, dword [esp + 0x48]
xor ebp, ebp
mov eax, dword [edx + 0xc]
test byte [eax + 0x24], 0x80
jne 0x10165836
mov edi, dword [esp + 0x3c]
push edi
push dword [esp + 0x28]
push edx
push dword [esp + 0xd0]
call fcn.10124dbb
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0x48]
jmp 0x101658e5
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x3c]
je 0x101658da
push eax
call fcn.10152228
mov ebp, eax
movzx ecx, word [ebp + 0x32]
push ecx
push dword [esp + 0xc4]
call fcn.10149ba4
movzx ecx, word [ebp + 0x32]
add esp, 0xc
mov dword [esp + 0x30], eax
xor esi, esi
xor eax, eax
mov edx, ecx
cmp ax, cx
jae 0x101658b1
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 4]
movzx eax, word [eax + esi*2]
push eax
push dword [esp + 0x4c]
call fcn.101567f8
movsx ecx, ax
lea eax, [esi + ebx]
push eax
push ecx
push dword [esp + 0x4c]
push 0x59
push edi
call fcn.10237091
movzx ecx, word [ebp + 0x32]
add esp, 0x1c
inc esi
cmp esi, ecx
jl 0x10165877
mov ebx, dword [esp + 0xcc]
mov edx, ecx
movzx eax, dx
push eax
push dword [esp + 0x34]
push dword [esp + 0x78]
push dword [esp + 0x30]
push 0x1d
push edi
call fcn.10237091
mov esi, dword [esp + 0x34]
add esp, 0x18
mov ecx, dword [esp + 0x24]
xor ebp, ebp
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x3c]
cmp dword [ebx], 0
jne 0x10165919
test byte [eax + 0x28], 0x20
jne 0x101658fc
push eax
push edi
push ecx
push edx
call fcn.1016f4a5
add esp, 0x10
mov eax, dword [esp + 0x48]
cmp dword [eax + 0x24], 0
je 0x10165919
push dword [esp + 0x6c]
push dword [esp + 0x28]
push dword [eax + 0x24]
call fcn.1016f25c
add esp, 0xc
test dword [esi + 0x24], 0x1000
je 0x10165928
mov byte [ebx + 0x35], 0xae
jmp 0x10165935
cmp dword [esp + 0x28], 0
sete al
add al, 4
mov byte [ebx + 0x35], al
xor ecx, ecx
mov dword [ebx + 0x38], edi
mov al, byte [esi + 0x26]
inc ecx
and al, cl
mov byte [ebx + 0x36], al
test byte [esi + 0x24], 0xf
jne 0x1016594c
mov byte [ebx + 0x37], cl
test ebp, ebp
je 0x10165f5c
and dword [esp + 0x48], 0
jmp 0x10165f5c
test edx, 0x2000
je 0x10165f1b
mov ebp, dword [esp + 0xbc]
xor edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
inc eax
inc dword [ebp + 0x2c]
dec dword [ebp + 0x38]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [eax + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0xc4]
mov byte [ebx + 0x35], 0x41
mov al, byte [eax + 0x2c]
cmp al, 1
jbe 0x10165acf
movzx eax, al
sub eax, esi
dec eax
imul ecx, eax, 0x48
push edx
mov dword [esp + 0x3c], eax
add ecx, 0x50
push ecx
push dword [esp + 0x68]
call fcn.10237091
mov esi, eax
add esp, 0xc
mov dword [esp + 0x40], esi
test esi, esi
jne 0x10165a1d
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
jmp 0x10166226
mov al, byte [esp + 0x38]
inc al
movzx eax, al
push 0x48
push dword [esp + 0x6c]
mov dword [esi + 4], eax
mov dword [esi], eax
lea eax, [esi + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0xd0]
add esp, 0xc
mov eax, dword [eax + 4]
add eax, 8
mov dword [esp + 0x30], eax
xor eax, eax
inc eax
cmp dword [esp + 0x38], eax
jl 0x10165a9d
mov edi, dword [esp + 0x30]
lea ebp, [ebx + 0x8c]
mov ebx, dword [esp + 0x38]
add esi, 0x50
movzx eax, byte [ebp]
imul eax, eax, 0x48
push 0x48
add eax, edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ebp, [ebp + 0x58]
add esi, 0x48
sub ebx, 1
jne 0x10165a68
mov ebx, dword [esp + 0xcc]
mov edi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
mov ecx, dword [esp + 0x50]
xor edx, edx
mov eax, dword [esp + 0xc4]
test byte [eax + 0x28], 0x10
jne 0x10165b16
test byte [ecx + 0x24], 0x80
jne 0x10165adf
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
push eax
push edx
push 0x48
push edi
mov dword [esp + 0x64], eax
call fcn.101596d3
add esp, 0x10
jmp 0x10165b0c
mov eax, dword [esp + 0xc4]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
jmp 0x10165aa3
push ecx
call fcn.10152228
mov esi, eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x58], eax
lea ecx, [eax + 1]
mov dword [ebp + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
push eax
push 0x64
push edi
call fcn.101596d3
push esi
push ebp
call fcn.1016209c
add esp, 0x1c
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x20], eax
push dword [esp + 0x64]
push 0
push 0x45
push edi
call fcn.101596d3
mov edx, dword [esp + 0x7c]
add esp, 0x10
mov dword [esp + 0x74], eax
xor eax, eax
inc eax
cmp dword [edx + 0xc], eax
jle 0x10165bcb
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov ebp, ebx
mov esi, ebx
mov eax, dword [edx + 0x14]
add eax, esi
cmp eax, ecx
je 0x10165b8e
test byte [eax + 0xa], 6
jne 0x10165b8e
mov edi, 0x1fff
test word [eax + 0xc], di
mov edi, dword [esp + 0xbc]
je 0x10165b8e
push ebx
push dword [eax]
push dword [esp + 0x68]
call fcn.101458f3
push eax
push dword [esp + 0x24]
push edi
call fcn.1014389e
mov ecx, dword [esp + 0x5c]
add esp, 0x18
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
jmp 0x10165b92
mov eax, dword [esp + 0x14]
inc ebp
add esi, 0x30
cmp ebp, dword [edx + 0xc]
jl 0x10165b45
mov ebx, dword [esp + 0xcc]
mov edi, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
test eax, eax
je 0x10165bd2
push eax
push 0
push 0x1002c
push ebp
call fcn.10237091
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x10165bd2
mov ebp, dword [esp + 0xbc]
xor edx, edx
push str.MULTI_INDEX_OR
inc edx
push edx
push ebp
call fcn.1015fa1f
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x4c], eax
cmp dword [ecx + 0xc], eax
jle 0x10165e80
mov edx, dword [esp + 0x24]
imul eax, eax, 0x30
add eax, dword [ecx + 0x14]
cmp dword [eax + 0x14], edx
je 0x10165c15
mov ebx, 0x400
test word [eax + 0xc], bx
je 0x10165e67
mov esi, dword [eax]
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10165c2a
mov dword [eax + 0xc], esi
mov esi, eax
mov eax, dword [esp + 0x4c]
inc eax
push eax
xor eax, eax
push str.INDEX__d
inc eax
push eax
push ebp
call fcn.1015fa1f
push dword [esp + 0x44]
xor ebx, ebx
push 0x20
push ebx
push ebx
push esi
push dword [esp + 0x64]
push ebp
call fcn.1016406a
mov esi, eax
add esp, 0x2c
mov dword [esp + 0x30], esi
test esi, esi
je 0x10165e5f
push ebx
lea ecx, [esi + 0x2f0]
push ecx
push dword [esp + 0x48]
push ebp
call fcn.1016678f
mov eax, dword [esp + 0xd4]
add esp, 0x10
test byte [eax + 0x28], 0x10
jne 0x10165db3
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
push 0xffffffffffffffff
mov eax, dword [eax + 0xc]
dec eax
cmp esi, eax
pop eax
cmove esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], esi
test byte [eax + 0x24], 0x80
jne 0x10165ce1
push dword [esp + 0x20]
push dword [esp + 0x28]
push 0x80
push edi
call fcn.101596d3
push esi
push dword [esp + 0x34]
push ebx
push dword [esp + 0x70]
push 0x2d
push edi
call fcn.10237091
add esp, 0x28
mov dword [esp + 0x38], eax
jmp 0x10165daf
push eax
call fcn.10152228
mov dword [esp + 0x80], eax
movzx ebp, word [eax + 0x32]
push ebp
push dword [esp + 0xc4]
call fcn.10149ba4
add esp, 0xc
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x10165d42
lfence
mov esi, ebx
add eax, esi
push eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x5c]
push edi
call fcn.10237091
mov eax, dword [esp + 0x40]
add esp, 0x14
inc esi
cmp esi, ebp
jl 0x10165d0f
mov esi, dword [esp + 0x80]
test esi, esi
je 0x10165d60
push ebp
push eax
push ebx
push dword [esp + 0x60]
push 0x1e
push edi
call fcn.10237091
add esp, 0x18
mov dword [esp + 0x38], eax
test esi, esi
js 0x10165d9a
push dword [esp + 0x20]
push ebp
push dword [esp + 0x34]
push 0x5b
push edi
call fcn.10237091
push ebp
push dword [esp + 0x44]
push dword [esp + 0x3c]
push dword [esp + 0x74]
push 0x83
push edi
call fcn.10237091
add esp, 0x2c
test esi, esi
je 0x10165d9a
push 0x10
push edi
call fcn.10159a50
pop ecx
pop ecx
push ebp
push dword [esp + 0x30]
mov ebp, dword [esp + 0xc4]
push ebp
call fcn.10237091
add esp, 0xc
mov esi, dword [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x68]
push 0xc
push edi
call fcn.101596d3
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
je 0x10165ddd
push eax
push edi
call fcn.1015fcbe
pop ecx
pop ecx
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x30]
test al, 2
mov ecx, dword [esp + 0x58]
push 1
pop edx
cmovne ecx, edx
mov edx, dword [esi + 0x338]
mov dword [esp + 0x58], ecx
mov ecx, eax
test dword [edx + 0x24], 0x200
je 0x10165e3c
cmp dword [esp + 0x4c], ebx
je 0x10165e17
mov edi, dword [esp + 0x3c]
cmp dword [edx + 0x20], edi
mov edi, dword [esp + 0xc0]
jne 0x10165e3c
mov ebp, dword [esp + 0x50]
test byte [ebp + 0x24], 0x80
mov ebp, dword [esp + 0xbc]
je 0x10165f0d
mov edx, dword [edx + 0x20]
mov dword [esp + 0x3c], edx
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x10165e40
mov dword [esp + 0x3c], ebx
xor edx, edx
inc edx
test dl, cl
je 0x10165e51
mov eax, dword [esp + 0xc4]
or dword [eax + 0x30], edx
push esi
call fcn.10166231
push ebp
call fcn.1015fa6e
pop ecx
pop ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [ecx + 0xc]
jl 0x10165bfb
mov ebx, dword [esp + 0xcc]
push ebp
call fcn.1015fa6e
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x40], eax
pop ecx
test eax, eax
je 0x10165e99
mov eax, dword [esp + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x60]
test eax, eax
je 0x10165eb2
and dword [eax + 0xc], 0
push eax
push ebp
call fcn.10145850
pop ecx
pop ecx
push dword [esp + 0x74]
push edi
call fcn.1015fcbe
mov ecx, dword [edi + 0x6c]
mov dword [eax + 4], ecx
push dword [ebx + 0xc]
push edi
call fcn.1015fce3
push dword [esp + 0x38]
push edi
call fcn.10161d60
mov eax, dword [esp + 0xdc]
xor ecx, ecx
inc ecx
add esp, 0x18
cmp byte [eax + 0x2c], cl
jbe 0x10165ef8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10165ef8
push eax
push ebp
call fcn.10141a5b
pop ecx
pop ecx
cmp dword [esp + 0x58], 0
jne 0x10165f5c
push dword [esp + 0x44]
push ebx
call fcn.10127d07
pop ecx
pop ecx
jmp 0x10165f5c
mov ecx, eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x10165e40
mov eax, dword [esp + 0x68]
test byte [eax + 0x28], 0x20
je 0x10165f2b
mov byte [ebx + 0x35], 0xae
jmp 0x10165f5c
mov ecx, dword [esp + 0x28]
push ebp
mov al, byte [ecx + 0x10280360]
mov byte [ebx + 0x35], al
mov eax, dword [esp + 0x28]
push eax
mov dword [ebx + 0x38], eax
movzx eax, byte [ecx + 0x10280364]
push eax
push edi
call fcn.101596d3
add esp, 0x10
inc eax
mov dword [ebx + 0x3c], eax
xor eax, eax
inc eax
mov byte [ebx + 0x37], al
mov eax, dword [esp + 0x6c]
xor edx, edx
cmp dword [esp + 0x48], edx
sete dl
inc edx
mov dword [esp + 0x38], edx
mov edi, dword [eax + 0xc]
xor esi, esi
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], edi
test edi, edi
jle 0x101660aa
xor eax, eax
mov dword [esp + 0x30], eax
movzx eax, word [ebp + 0xa]
test al, 6
jne 0x1016608c
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x2c]
and ecx, dword [ebx + 0x50]
and eax, dword [ebx + 0x54]
or ecx, eax
je 0x10165fb8
mov eax, dword [esp + 0xc4]
or dword [eax + 0x30], 2
jmp 0x1016608c
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp]
mov dword [esp + 0x74], eax
test byte [ecx + 0x24], 8
je 0x10165fd7
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x1016608c
jmp 0x10165fda
xor ecx, ecx
inc ecx
cmp edx, ecx
jne 0x10165ffe
push dword [esp + 0x48]
push dword [ebx + 4]
push eax
call fcn.10237091
add esp, 0xc
test eax, eax
jne 0x10166003
push 2
pop esi
mov dword [esp + 0x18], esi
jmp 0x1016608c
cmp edx, 3
jge 0x10166016
movzx eax, word [ebp + 0xa]
test eax, 0x1000
je 0x1016601a
test esi, esi
jne 0x1016608c
push 3
jmp 0x10165ff4
movzx eax, word [ebp + 0xa]
mov esi, dword [esp + 0xc0]
test eax, 0x200
je 0x10166051
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x10166051
mov eax, ecx
shr eax, 1
push eax
xor eax, eax
inc eax
and ecx, eax
lfence
lea eax, [ecx*2 + 0x12]
push eax
push esi
call fcn.101596ba
add esp, 0xc
mov dword [esp + 0x30], eax
push 0x10
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0xc8]
call fcn.10145a70
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x10166081
push eax
push esi
call fcn.1015fcbe
pop ecx
pop ecx
mov ecx, dword [esi + 0x6c]
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x18]
push 4
pop eax
or word [ebp + 0xa], ax
mov edx, dword [esp + 0x38]
dec edi
add ebp, 0x30
test edi, edi
jg 0x10165f86
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 0xc]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x40], edi
mov edx, esi
mov dword [esp + 0x38], edx
test esi, esi
jg 0x10165f6e
test edi, edi
jle 0x101661a7
add ebp, 0xc
test byte [ebp - 2], 6
jne 0x10166190
movzx eax, word [ebp]
test al, 0x82
push 0xb
setne cl
pop edx
bt ax, dx
setb al
test al, cl
je 0x10166190
mov eax, dword [esp + 0x24]
cmp dword [ebp + 8], eax
jne 0x10166190
mov ecx, dword [esp + 0x68]
test byte [ecx + 0x24], 8
jne 0x10166190
mov ebx, dword [ebp - 0xc]
push 0
push 0x83
push dword [esp + 0xdc]
push dword [esp + 0xdc]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x84]
call fcn.10237091
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x10166190
test byte [esi + 0xa], 4
jne 0x10166190
xor ecx, ecx
inc ecx
test byte [esi + 0xc], cl
je 0x10166157
mov eax, dword [esi]
test dword [eax + 4], 0x800
je 0x10166157
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax], ecx
jg 0x10166190
mov esi, dword [esi]
lea edi, [esp + 0x84]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xc]
push 0x10
push dword [esp + 0x74]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0xc8]
call fcn.10145a70
mov edi, dword [esp + 0x50]
add esp, 0x10
dec edi
add ebp, 0x30
mov dword [esp + 0x40], edi
test edi, edi
jg 0x101660c3
mov ebx, dword [esp + 0xcc]
cmp dword [ebx], 0
je 0x10166220
mov ebp, dword [esp + 0xc0]
push dword [ebx]
mov eax, dword [ebp + 0x6c]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x45
push ebp
call fcn.101596d3
mov ebp, dword [esp + 0x7c]
xor edx, edx
add esp, 0x10
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0xc], edx
jle 0x10166220
test byte [esi + 0xa], 6
jne 0x10166213
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x50]
and eax, dword [ebx + 0x54]
or ecx, eax
jne 0x10166213
push 0x10
push dword [esp + 0x74]
push dword [esi]
push dword [esp + 0xc8]
call fcn.10145a70
mov edx, dword [esp + 0x88]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
inc edx
add esi, 0x30
mov dword [esp + 0x78], edx
cmp edx, dword [ebp + 0xc]
jl 0x101661d8
mov eax, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret