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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
and dword [ecx + 0xc], 0xfffffff3
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x2e
test byte [esi + 0xf5a], 2
je 0x1016c436
cmp dword [esi + 0x28b0], 0
mov byte [esp + 0xe], 1
jne 0x1016c43b
mov byte [esp + 0xe], 0
mov ecx, dword [0x11d0c5b8]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov al, byte [esi + 0x73d4]
mov byte [esp + 0xd], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x10]
mov edi, dword [eax + 0x7a68]
mov edi, dword [edi + 8]
mov dword [esp + 0x28], edi
mov eax, dword [edi + 0x20]
add eax, 0x84
cmp eax, dword [edi + 0x24]
jb 0x1016c48b
push 0x21
mov ecx, edi
call fcn.101e4a10
mov ebx, dword [edi + 0x20]
lea eax, [esi + 0x288c]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov edx, 0x800
mov byte [esp + 0xf], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], 1
cmp byte [esp + 0xe], 0
jne 0x1016caf7
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test eax, eax
je 0x1016caf7
mov edx, dword [esp + 0x10]
mov esi, dword [eax + 0x20c]
mov dword [esp + 0x38], esi
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0x15a8]
cmp eax, 0xd7
je 0x1016c505
cmp eax, 0xd9
je 0x1016c505
xor dl, dl
jmp 0x1016c507
mov dl, 1
mov eax, dword [esi + 0x18c]
mov ecx, dword [eax + 0x29c]
xor eax, eax
and ecx, 0x28
or eax, ecx
je 0x1016c52a
test dl, dl
je 0x1016c52a
xorps xmm0, xmm0
movups xmmword [esi + 0x270], xmm0
mov ecx, dword [esi + 0x18c]
mov dword [esp + 0x2c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1016c6ef
lea eax, [edx + 8]
test eax, eax
je 0x1016c6f3
cmp dword [edx + 8], 0
mov dword [esp + 0x2c], ecx
je 0x1016c6f3
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xbe2c]
mov eax, dword [ecx + 0x11d4]
mov ecx, dword [ecx + 0x107c]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
inc dword [ecx + eax*4 + 0xb38]
mov eax, dword [esi + 0x18c]
mov esi, dword [eax + 8]
lea eax, [esi + 8]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [esi + 0xc0]
test eax, eax
cmovne esi, eax
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xbe2c]
mov edx, dword [eax + 0x107c]
mov eax, dword [eax + 0x11d4]
mov dword [esp + 0x44], edx
cmp byte [edx + 0x21], 0
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
je 0x1016c657
mov edx, dword [edx + ecx*4 + 0x830]
cmp dword [esi + ecx*4 + 0x9cc], edx
je 0x1016c604
mov eax, dword [esi + 0xa50]
btr eax, ecx
mov dword [esi + 0xa50], eax
mov dword [esi + ecx*4 + 0x9cc], edx
cmp dword [esi + 0xa4c], edx
jae 0x1016c604
mov dword [esi + 0xa4c], edx
mov eax, dword [esp + 0x34]
or byte [esi + 0xb1], 0x20
mov edx, dword [esi + 0x9c0]
shl eax, cl
test eax, edx
jne 0x1016c64f
mov edi, dword [esp + 0x44]
push 1
push ecx
push esi
mov ecx, edi
call fcn.10287930
test eax, eax
jns 0x1016c64f
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov dword [edi + ecx*4 + 0x17c4], eax
mov ecx, dword [edi + 0x17c0]
mov edi, dword [esp + 0x28]
mov dword [ecx + 8], eax
jmp 0x1016c6d0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xbe2c]
mov ecx, dword [eax + 0x11d4]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x1016c67a
cmp eax, 0x16
jne 0x1016c6ac
mov eax, dword [esp + 0x24]
add eax, 2
je 0x1016c6ac
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x11d0]
mov dword [eax + ecx + 0x164ec], esi
mov dword [eax + ecx + 0x164f0], 0
mov dword [eax + ecx + 0x164f4], 2
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0xa50]
mov eax, dword [eax + 0xbe2c]
mov eax, dword [eax + 0x11d4]
mov eax, dword [eax + 4]
bts ecx, eax
mov dword [esi + 0xa50], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
dec dword [ecx + eax*4 + 0xb38]
mov eax, dword [esi + 0x18c]
mov dword [esp + 0x2c], eax
jmp 0x1016c6f3
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x11d8]
test byte [eax + 0x605], 4
je 0x1016c7ce
test byte [esi + 0x72], 2
je 0x1016c7ce
mov esi, dword [ecx]
mov ecx, dword [esi + 0xf93c]
mov eax, dword [esi + 0xf880]
and ecx, 0xf
mov edx, dword [esi + 0xf884]
shl ecx, 3
call fcn.10451430
mov ecx, dword [esi + 0xf944]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
shl edx, cl
dec edx
and eax, edx
movzx ecx, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x80]
mov edx, dword [eax + 0x10]
test dword [edx + 0x162c], 0x100000
jne 0x1016c7ac
mov edx, dword [edx + 0xf7d4]
test edx, edx
je 0x1016c7ac
cmp ecx, 0xffffffff
je 0x1016c7ac
mov eax, dword [esp + 0x34]
shl eax, cl
test dword [edx + 0x340], eax
je 0x1016c7ac
test dword [esi + 0x58], 0x8000
je 0x1016c7ce
mov eax, dword [esi + 0x48]
mov cl, 0x36
mov edx, dword [esi + 0x4c]
call fcn.10451430
test al, 1
je 0x1016c7ce
mov eax, dword [esp + 0x14]
test eax, 0xfffffffe
je 0x1016c7ce
jmp 0x1016c7b0
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 8]
push 0
push eax
lea eax, [edx + 8]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp + 8]
push edx
mov ecx, dword [eax + 0x11d8]
call fcn.101d3420
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x188]
mov eax, dword [eax + 0x18c]
mov dword [esp + 0x40], edx
mov esi, dword [eax + 8]
lea eax, [esi + 8]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x54], esi
test byte [eax + 0x605], 4
jne 0x1016c942
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x11d0]
mov dword [eax + ecx + 0x164ec], esi
mov dword [eax + ecx + 0x164f0], edx
mov dword [eax + ecx + 0x164f4], 3
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], eax
test byte [eax + 0x604], 0x10
je 0x1016c867
push edx
push 3
push esi
mov ecx, eax
call fcn.101d3100
mov ecx, dword [esp + 0x20]
and ecx, 0x3ffc
movzx edx, dl
or ecx, 0x80080003
shr ecx, 2
mov dword [ebx], ecx
add ebx, 4
mov dword [ebx], edx
mov dword [ebx + 4], eax
jmp 0x1016c968
lea ecx, [ebx + 4]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x1016c87b
sub ecx, dword [edi + 0x1c]
mov dword [esp + 0x44], ecx
jmp 0x1016c883
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], 0
test esi, esi
je 0x1016c8a1
push 3
push esi
mov ecx, eax
call fcn.101d3710
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x250]
mov dword [esp + 0x50], eax
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x20]
cmp ecx, eax
jae 0x1016c922
mov esi, dword [esp + 0x50]
lea eax, [ecx + ecx*2]
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x50], esi
and dword [esi + eax*8 + 4], 0xff000000
mov dword [esi + eax*8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + eax*8 + 8], 9
mov esi, dword [esp + 0x54]
test esi, esi
je 0x1016c8f2
mov esi, dword [esi + 0xb4]
test esi, esi
je 0x1016c8f2
add edx, esi
mov esi, dword [esp + 0x50]
mov dword [esi + eax*8 + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [esi + eax*8 + 0x10], edx
lea edx, [ecx + ecx*2]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x5e4]
mov dword [esi + edx*8 + 0x14], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x250]
inc dword [eax + 0x28]
jmp 0x1016c924
mov ecx, eax
mov eax, dword [esp + 0x20]
and eax, 0x3ffc
or eax, 0x80080003
shr eax, 2
mov dword [ebx], eax
mov ebx, dword [esp + 0x58]
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
jmp 0x1016c968
xor eax, eax
add edx, dword [esi + 0x20]
adc eax, dword [esi + 0x24]
movzx ecx, al
mov eax, dword [esp + 0x20]
and eax, 0x3ffc
or eax, 0x80080003
shr eax, 2
mov dword [ebx], eax
add ebx, 4
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov esi, dword [esp + 0x48]
test dword [esi + 0x10], 0x78000000
jne 0x1016c9a8
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x238]
mov edx, dword [eax + 0x19740]
test ecx, ecx
je 0x1016c9a8
cmp byte [ecx + 0x278], 0
je 0x1016c9a8
mov eax, dword [ecx + 0x270]
cmp eax, dword [edx + 0xc]
jbe 0x1016c9a8
or byte [edx + 8], 0xc
mov byte [ecx + 0x278], 0
test byte [esp + 0xd], 4
mov eax, dword [esi + 0x20c]
movq xmm0, qword [eax + 0x24]
mov edx, dword [eax + 0xc]
movsx ecx, byte [eax + 0x58]
mov esi, dword [eax + 0x2c]
mov eax, dword [eax + 0x10]
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], eax
je 0x1016ca16
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ecx + 0x73d8]
mov ecx, dword [ecx + 0x73c8]
mov dword [esp + 0x58], eax
lea eax, [eax + eax*2]
mov ecx, dword [ecx + 0x288c]
mov eax, dword [eax*8 + 0x10f303e8]
mov ecx, dword [ecx + 0x20c]
movzx ecx, byte [ecx + 0x61]
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
div ecx
mov ecx, dword [esp + 0x58]
mov edx, eax
mov eax, dword [esp + 0x20]
and edx, 0xfffffff
add eax, 8
movzx ecx, byte [ecx*4 + 0x11222240]
and eax, 0x3ffc
mov dword [esp + 0x2c], edx
or eax, 0x80100003
and esi, 0xf
shr eax, 2
mov dword [ebx + 8], eax
mov eax, edx
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x54]
and eax, 0x1ffff
shl esi, 4
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x60]
and eax, 0xf
mov dword [ebx + 0x14], ecx
or esi, eax
mov eax, dword [esp + 0x5c]
and eax, 0xf
shl esi, 4
or esi, eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x18], esi
add ebx, 0x1c
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0x10]
test dword [eax + 0x190], 0x3e8000
je 0x1016cab7
cmp byte [esp + 0xf], 0
je 0x1016cab7
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 0x6d]
and eax, 0x20
shl eax, 0xb
or eax, 0x800000ae
mov dword [ebx], eax
add ebx, 4
xor al, al
mov dword [esp + 0x14], ebx
mov byte [esp + 0xf], al
cmp dword [esp + 0x1c], 0x2e
jne 0x1016cade
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20c]
test eax, eax
je 0x1016cad6
movzx ecx, byte [eax + 0x5c]
mov dword [esp + 0x1c], ecx
jmp 0x1016cade
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
inc dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x1016cb4d
lea eax, [edx + 0x10]
shr eax, 2
and eax, 0xfff
or eax, 0x80000000
mov dword [ebx], eax
add ebx, 4
mov eax, dword [esi + 0x11d8]
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x11d0]
cmp dword [eax + ecx + 0x164ec], 0
je 0x1016cb49
mov dword [eax + ecx + 0x164ec], 0
mov dword [eax + ecx + 0x164f0], 0
mov dword [eax + ecx + 0x164f4], 0
mov eax, dword [esp + 0x24]
inc eax
add edx, 0x40
mov dword [esp + 0x24], eax
add ecx, 0xc
mov eax, dword [esp + 0x4c]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
cmp edx, 0x900
jl 0x1016c4c0
mov eax, dword [esp + 0x10]
mov dword [edi + 0x20], ebx
mov esi, dword [eax + 0x10]
test dword [esi + 0x190], 0x3fff00
je 0x1016cc7e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x32c]
mov ebx, dword [ecx + 0xd4b8]
cmp eax, dword [ecx + 0x11b4]
jbe 0x1016cc7e
cmp dword [esp + 0x3c], 3
jb 0x1016cc07
test byte [ecx + 0xd2a3], 2
je 0x1016cbc9
mov ebx, dword [ecx + 0xd558]
mov esi, dword [esi + 0x7a68]
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x20]
add eax, 8
cmp eax, dword [esi + 0x24]
jb 0x1016cbe6
push 2
mov ecx, esi
call fcn.101e4a10
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x18]
push ebx
mov dword [eax + 0x75a8], ebx
call fcn.10175ff0
mov dword [edx], 0x200100d8
mov dword [edx + 4], eax
jmp 0x1016cc78
mov esi, dword [esi + 0x7a68]
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x20]
add eax, 8
cmp eax, dword [esi + 0x24]
jb 0x1016cc24
push 2
mov ecx, esi
call fcn.101e4a10
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xd4b8]
mov dword [ecx + 0x75a8], eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xd4b8]
mov eax, dword [eax + 0x15a8]
cmp eax, 0xf0
je 0x1016cc61
cmp eax, 0xf1
je 0x1016cc61
cmp eax, 0xf2
jne 0x1016cc6f
cmp cl, 0x68
jbe 0x1016cc6f
and ecx, 0xffffff68
or ecx, 0x68
mov dword [edx], 0x200100d8
mov dword [edx + 4], ecx
lea eax, [edx + 8]
mov dword [esi + 0x20], eax
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x28b0]
mov al, byte [edx + 0xf5a]
and al, 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x1016cccd
test al, al
jne 0x1016ccbf
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x1016ccaf
movzx eax, byte [eax + 0x5c]
jmp 0x1016ccb1
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x1016ccbf
xor ebx, ebx
mov dword [esp + 0x30], ebx
jmp 0x1016cccd
test byte [ebx + 0x91], 0x40
mov ecx, 0x22
jne 0x1016ccd2
mov ecx, 0x16
mov eax, dword [edi + 0x20]
lea eax, [eax + ecx*4]
cmp eax, dword [edi + 0x24]
jb 0x1016cce8
push ecx
mov ecx, edi
call fcn.101e4a10
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0x20]
mov al, byte [eax + 0x19750]
mov cl, al
and cl, 2
test ebx, ebx
je 0x1016d141
test cl, cl
jne 0x1016cd19
mov ecx, dword [esp + 0x18]
or dword [ecx + 0x14], 0xfffff
or al, 2
mov byte [ecx + 0x19750], al
test byte [edx + 0xf5a], 2
je 0x1016cd45
cmp dword [esp + 0x1c], 0x2e
jne 0x1016cd45
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x1016cd3d
movzx eax, byte [eax + 0x5c]
mov dword [esp + 0x1c], eax
jmp 0x1016cd45
mov dword [esp + 0x1c], 0
mov dword [esi], 0x8001054e
add esi, 4
mov edx, dword [ebx + 0x20c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], edx
mov eax, dword [edx + 0x18c]
mov eax, dword [eax + 8]
test eax, eax
je 0x1016cefb
add eax, 8
je 0x1016cefb
cmp dword [eax], 0
je 0x1016cefb
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xbe2c]
mov eax, dword [ecx + 0x11d4]
mov ecx, dword [ecx + 0x107c]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
inc dword [ecx + eax*4 + 0xb38]
mov eax, dword [edx + 0x18c]
mov ebx, dword [eax + 8]
lea eax, [ebx + 8]
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [ebx + 0xc0]
test eax, eax
cmovne ebx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xbe2c]
mov edx, dword [eax + 0x107c]
mov eax, dword [eax + 0x11d4]
mov dword [esp + 0x58], edx
cmp byte [edx + 0x21], 0
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
je 0x1016ce7f
mov edx, dword [edx + ecx*4 + 0x830]
cmp dword [ebx + ecx*4 + 0x9cc], edx
je 0x1016ce2f
mov eax, dword [ebx + 0xa50]
btr eax, ecx
mov dword [ebx + 0xa50], eax
mov dword [ebx + ecx*4 + 0x9cc], edx
cmp dword [ebx + 0xa4c], edx
jae 0x1016ce2f
mov dword [ebx + 0xa4c], edx
mov edx, dword [esp + 0x34]
or byte [ebx + 0xb1], 0x20
mov eax, dword [ebx + 0x9c0]
shl edx, cl
test edx, eax
jne 0x1016ce77
mov esi, dword [esp + 0x58]
push 1
push ecx
push ebx
mov ecx, esi
call fcn.10287930
test eax, eax
jns 0x1016ce77
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
mov dword [esi + ecx*4 + 0x17c4], eax
mov ecx, dword [esi + 0x17c0]
mov esi, dword [esp + 0x14]
mov dword [ecx + 8], eax
jmp 0x1016cee8
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xbe2c]
mov ecx, dword [eax + 0x11d4]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x1016cea2
cmp eax, 0x16
jne 0x1016cec4
mov eax, dword [ecx]
mov eax, dword [eax + 0x11d0]
mov dword [eax + 0x16558], ebx
mov dword [eax + 0x1655c], 0
mov dword [eax + 0x16560], 3
mov eax, dword [edx + 0x10]
mov ecx, dword [ebx + 0xa50]
mov eax, dword [eax + 0xbe2c]
mov eax, dword [eax + 0x11d4]
mov eax, dword [eax + 4]
bts ecx, eax
mov dword [ebx + 0xa50], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
dec dword [ecx + eax*4 + 0xb38]
mov eax, dword [ebx + 0x20c]
movsx eax, byte [eax + 0x58]
mov ecx, dword [eax*4 + 0x11222240]
mov eax, dword [esp + 0x40]
and ecx, 0x1f
mov edx, ecx
or edx, 0x100
test byte [eax + 0x91], 0x40
mov eax, dword [esp + 0x38]
cmove edx, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x188]
mov eax, dword [eax + 0x18c]
mov dword [esp + 0x48], ecx
mov ebx, dword [eax + 8]
lea eax, [ebx + 8]
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x54], ebx
test byte [eax + 0x605], 4
jne 0x1016d089
mov eax, dword [eax]
mov eax, dword [eax + 0x11d0]
mov dword [eax + 0x16558], ebx
mov dword [eax + 0x1655c], ecx
mov dword [eax + 0x16560], 3
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], eax
test byte [eax + 0x604], 0x10
je 0x1016cfac
push ecx
push 3
push ebx
mov ecx, eax
call fcn.101d3100
mov dword [esi], 0x200203f8
add esi, 4
movzx ecx, dl
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x1016d0a2
lea edx, [esi + 4]
mov dword [esp + 0x50], edx
test edx, edx
je 0x1016cfc0
sub edx, dword [edi + 0x1c]
mov dword [esp + 0x44], edx
jmp 0x1016cfc8
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
test ebx, ebx
je 0x1016cfe6
push 3
push ebx
mov ecx, eax
call fcn.101d3710
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x250]
mov dword [esp + 0x58], eax
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x20]
cmp edx, eax
jae 0x1016d076
mov ecx, dword [esp + 0x58]
lea eax, [edx + edx*2]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x58], ecx
and dword [ecx + eax*8 + 4], 0xff000000
mov dword [ecx + eax*8], ebx
mov ebx, dword [esp + 0x54]
mov dword [ecx + eax*8 + 8], 9
mov ecx, dword [esp + 0x48]
test ebx, ebx
je 0x1016d037
mov ebx, dword [ebx + 0xb4]
test ebx, ebx
je 0x1016d037
add ecx, ebx
mov ebx, dword [esp + 0x58]
mov dword [ebx + eax*8 + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + eax*8 + 0x10], ecx
lea ecx, [edx + edx*2]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x5e4]
mov dword [ebx + ecx*8 + 0x14], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x250]
inc dword [eax + 0x28]
mov dword [esi], 0x200203f8
mov esi, dword [esp + 0x50]
mov dword [esi], edx
mov dword [esi + 4], edx
jmp 0x1016d0a2
mov dword [esi], 0x200203f8
mov edx, eax
mov esi, dword [esp + 0x50]
mov dword [esi], edx
mov dword [esi + 4], edx
jmp 0x1016d0a2
xor eax, eax
add ecx, dword [ebx + 0x20]
adc eax, dword [ebx + 0x24]
mov dword [esi], 0x200203f8
add esi, 4
movzx eax, al
mov dword [esi], eax
mov dword [esi + 4], ecx
lea edx, [esi + 8]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x20c]
movq xmm0, qword [eax + 0x24]
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x34]
and ecx, 0xf
shl eax, 0x10
or eax, 0x800003fa
shl ecx, 4
mov dword [edx], eax
movq qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x60]
and eax, 0xf
or ecx, eax
mov eax, dword [esp + 0x5c]
shl ecx, 4
and eax, 0xf
or ecx, eax
shl ecx, 0x10
or ecx, 0x800003fb
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x20c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
and ecx, 0x1ffff
and eax, 0xfffffff
mov dword [edx + 8], 0x2002048a
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0x10], ecx
lea ecx, [edx + 0x14]
mov dword [esp + 0x14], ecx
test byte [eax + 0x91], 0x40
je 0x1016d196
push dword [esp + 0x38]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.101905a0
mov ecx, dword [esp + 0x14]
jmp 0x1016d196
test cl, cl
je 0x1016d158
mov ecx, dword [esp + 0x18]
or dword [ecx + 0x14], 0xfffff
and al, 0xfd
mov byte [ecx + 0x19750], al
mov dword [esi], 0x8000054e
lea ecx, [esi + 4]
mov eax, dword [edx + 0x11d8]
mov eax, dword [eax]
mov eax, dword [eax + 0x11d0]
cmp dword [eax + 0x16558], 0
je 0x1016d196
mov dword [eax + 0x16558], 0
mov dword [eax + 0x1655c], 0
mov dword [eax + 0x16560], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0x2dd8], edx
je 0x1016d1b3
or dword [eax + 0x10], 0x4000
mov dword [eax + 0x2dd8], edx
lea esi, [edx*8]
sub esi, edx
mov eax, dword [esi*8 + 0x10f2ce4c]
mov eax, dword [eax*4 + 0x10f27da4]
mov dword [esp + 0x54], eax
and eax, 0x1fff
shl eax, 0x10
or eax, 0x80000574
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x10]
mov ebx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x10]
mov eax, ecx
test dword [edx + 0x190], 0x3ff000
je 0x1016d2c9
mov eax, dword [esi*8 + 0x10f2ce4c]
cmp eax, 9
ja case.0x1016d212.0
jmp dword [eax*4 + 0x1016d6f0]
mov edx, dword [0x11c4f51c]
mov esi, dword [0x11c4f528]
mov ebx, dword [0x11c4f524]
mov eax, dword [0x11c4f520]
jmp 0x1016d294
mov edx, dword [0x11c4f4ec]
mov esi, dword [0x11c4f4f8]
mov ebx, dword [0x11c4f4f4]
mov eax, dword [0x11c4f4f0]
jmp 0x1016d294
mov edx, dword [0x11c4f4fc]
mov esi, dword [0x11c4f508]
mov ebx, dword [0x11c4f504]
mov eax, dword [0x11c4f500]
jmp 0x1016d294
mov edx, dword [0x11c4f4dc]
mov esi, dword [0x11c4f4e8]
mov ebx, dword [0x11c4f4e4]
mov eax, dword [0x11c4f4e0]
jmp 0x1016d294
mov edx, dword [0x11c4f50c]
mov esi, dword [0x11c4f518]
mov ebx, dword [0x11c4f514]
mov eax, dword [0x11c4f510]
mov dword [ecx], 0x20040478
mov dword [esp + 0x28], eax
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov eax, ecx
mov edx, dword [edx + 0x10]
mov ebx, eax
mov dword [esp + 0x4c], eax
mov esi, eax
jmp 0x1016d2cd
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x54], 0
jne 0x1016d2dc
mov dword [ecx], 0x80000367
jmp 0x1016d304
test byte [edx + 0xd2a1], 4
mov eax, ebx
je 0x1016d2fd
test byte [edx + 0xd2a0], 0x20
mov eax, esi
jne 0x1016d2fd
mov eax, dword [esp + 0x4c]
mov edx, 0x80010367
jmp 0x1016d302
mov edx, 0x80000367
mov dword [ecx], edx
cmp byte [esp + 0xe], 0
lea esi, [eax + 4]
je 0x1016d3fa
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28b0]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x1016d32b
movzx eax, byte [ebx + 0x5c]
jmp 0x1016d32d
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm1, dword [ecx*8 + 0x10f2ce38]
mov eax, dword [eax*8 + 0x10f2cdd8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [ebx + 0xc]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movss dword [esp + 0x4c], xmm1
test ebx, ebx
je 0x1016d398
movzx eax, byte [ebx + 0x5c]
jmp 0x1016d39a
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce3c]
mov eax, dword [eax*8 + 0x10f2cddc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [ebx + 0x10]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
mulss xmm2, xmm0
jmp 0x1016d4e2
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x288c]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x1016d418
movzx eax, byte [ebx + 0x5c]
jmp 0x1016d41a
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm1, dword [ecx*8 + 0x10f2ce38]
mov eax, dword [eax*8 + 0x10f2cdd8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [ebx + 0xc]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movss dword [esp + 0x4c], xmm1
test ebx, ebx
je 0x1016d485
movzx eax, byte [ebx + 0x5c]
jmp 0x1016d487
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce3c]
mov eax, dword [eax*8 + 0x10f2cddc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [ebx + 0x10]
cvtpd2ps xmm0, xmm0
movd xmm1, eax
divss xmm2, xmm0
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm1, xmm1
mulss xmm2, xmm1
movaps xmm0, xmm2
call fcn.10451080
movss xmm0, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
call fcn.10451080
and byte [esp + 0xd], 4
mov dword [esp + 0x58], eax
je 0x1016d53f
mov eax, dword [ebp + 8]
xor edx, edx
lea ebx, [eax + 0x73d8]
mov eax, dword [eax + 0x73c8]
mov eax, dword [eax + 0x288c]
mov eax, dword [eax + 0x20c]
movzx ecx, byte [eax + 0x61]
mov eax, dword [ebx]
lea eax, [eax + eax*2]
mov eax, dword [eax*8 + 0x10f303e8]
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x58]
div ecx
jmp 0x1016d548
mov ebx, dword [ebp + 8]
add ebx, 0x73d8
mov edx, dword [esp + 0x10]
shl eax, 0x10
mov dword [esi], 0x200203fd
mov dword [esi + 4], eax
mov eax, dword [esp + 0x54]
shl eax, 0x10
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
mov dword [edi + 0x20], eax
mov edi, dword [edx + 0x10]
mov eax, dword [esp + 0x30]
add edi, 0x8040
test eax, eax
je 0x1016d584
mov ecx, dword [eax + 0x20c]
jmp 0x1016d586
xor ecx, ecx
cmp byte [edi + 0xc], 0
mov eax, ebx
je 0x1016d676
test ecx, ecx
je 0x1016d676
mov ecx, dword [ecx + 0x18c]
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x1016d676
push ecx
mov ecx, edi
call fcn.1017dd60
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x54], eax
mov esi, dword [edx + 0x10]
mov esi, dword [esi + 0x7a68]
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x20]
je 0x1016d650
add eax, 4
cmp eax, dword [esi + 0x24]
jb 0x1016d5e3
push 1
mov ecx, esi
call fcn.101e4a10
mov eax, dword [esi + 0x20]
mov dword [eax], 0x80000564
add eax, 4
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0xa60]
mov esi, dword [eax + 0xa64]
cmp dword [edi + 0x70], ebx
jne 0x1016d60f
cmp dword [edi + 0x74], esi
je 0x1016d641
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x1016d62e
cmp dword [ecx + 8], 0
je 0x1016d62e
cmp byte [edi + 0x79], 0
je 0x1016d62e
call fcn.1017e3e0
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x5c], 1
mov eax, dword [esp + 0x54]
mov word [edi + 0x78], 1
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], esi
mov dword [edi + 0x7c], eax
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
lea eax, [ebx + 0x73d8]
jmp 0x1016d679
add eax, 4
cmp eax, dword [esi + 0x24]
jb 0x1016d665
push 1
mov ecx, esi
call fcn.101e4a10
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
mov dword [eax], 0x803f0564
add eax, 4
mov dword [esi + 0x20], eax
mov eax, ebx
mov ebx, dword [ebp + 8]
cmp byte [esp + 0xd], 0
mov esi, dword [esp + 0x18]
je 0x1016d695
or dword [esi + 0xc], 0xc
and byte [ebx + 0x73d4], 0xfb
mov dword [eax], 0x42
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x162c]
shr eax, 7
test al, 1
je 0x1016d6bb
mov eax, dword [edx + 0x10]
cmp dword [eax + 0xf940], 2
jne 0x1016d6bb
mov ecx, ebx
call fcn.100fff20
push dword [esi + 0x19788]
mov ecx, esi
push dword [esi + 0x19780]
push ebx
call fcn.10173500
push dword [esi + 0x1978c]
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x19784]
push ebx
call dword [eax + 0x38]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4