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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x104
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
lea ebx, [edx + 0x70]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0x1c]
mov edi, dword [edx + 0xc]
add edi, dword [edx + 4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x48], eax
add eax, esi
mov dword [esp + 0x44], eax
add eax, 0xfffffff8
push edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x8c], eax
call fcn.00493c30
mov dword [esp + 0xc4], eax
mov ecx, 0xfff
mov eax, dword [edx + 0xcc]
xorps xmm0, xmm0
cmp eax, ecx
movaps xmmword [esp + 0xe8], xmm0
movups xmmword [esp + 0xcc], xmm0
cmovb ecx, eax
mov dword [esp + 0x114], 0
xor eax, eax
mov dword [esp + 0xc8], ecx
cmp dword [edx + 0xc8], 3
mov ecx, 0x520a78
push esi
setne al
mov dword [esp + 0x110], 0
add eax, 3
mov dword [esp + 0x114], 0
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x94], eax
mov eax, dword [edx + 0xd4]
test eax, eax
push 0
cmovne ecx, eax
mov eax, dword [ecx + 0x10]
movups xmm0, xmmword [ecx]
mov dword [esp + 0x110], eax
lea eax, [esp + 0x100]
push eax
movups xmmword [esp + 0x104], xmm0
call fcn.00493410
push 2
push esi
mov esi, dword [esp + 0xa8]
push esi
push ebx
call fcn.004934f0
xor ecx, ecx
add esp, 0x24
cmp esi, edi
sete cl
add ecx, esi
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x84]
jae 0x492d66
mov edi, dword [esp + 0x34]
nop dword [eax + eax]
push dword [esp + 0x6c]
mov esi, ecx
mov eax, 0
sub esi, dword [esp + 0x48]
sete al
push eax
push dword [esp + 0x70]
lea eax, [esp + 0xc0]
push dword [esp + 0x4c]
push ecx
push eax
push dword [esp + 0xd0]
push edi
call dword [esp + 0xdc]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
sub eax, ecx
sub ecx, dword [esp + 0xac]
push eax
push ecx
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x11c]
push edi
push eax
call fcn.00493300
add esp, 0x34
cmp dword [esp + 0x38], 0
jne 0x491db5
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
jmp 0x492d59
mov edi, dword [esp + 0x18]
mov dword [edi + 8], 0
mov dword [edi + 0xc], esi
cmp dword [ebx + 0x38], 1
jne 0x491ddb
lea edx, [esi + 1]
bsr ecx, edx
shl edx, 8
shr edx, cl
shl ecx, 8
add edx, ecx
jmp 0x491e2f
cmp esi, 0x20000
jne 0x491dfb
push 2
push ebx
push 0x1ffff
call fcn.00493250
add esp, 0xc
lea edx, [eax + 0x100]
jmp 0x491e2f
cmp esi, 0x3f
jbe 0x491e08
bsr edx, esi
add edx, 0x13
jmp 0x491e0f
movzx edx, byte [esi + 0x520a90]
mov eax, dword [ebx + 4]
mov eax, dword [eax + edx*4]
movzx edx, byte [edx + 0x520920]
inc eax
bsr ecx, eax
shl eax, 8
sub edx, ecx
shr eax, cl
shl edx, 8
sub edx, eax
add edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x68]
mov dword [edi], edx
mov edx, dword [esp + 0x38]
movq xmm0, qword [eax]
movq qword [edi + 0x10], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + edx*8 - 4]
cmp ecx, dword [esp + 0xc0]
jbe 0x491e8d
mov edx, dword [eax + edx*8 - 8]
xor edi, edi
movaps xmm2, xmmword [esp + 0xe0]
xor eax, eax
mov dword [esp + 0xd0], edi
mov esi, ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xc8], edx
movups xmm1, xmmword [esp + 0xc4]
jmp 0x4929f5
mov ecx, dword [esp + 0x18]
mov edi, 1
mov ebx, dword [esp + 0x6c]
add ecx, 0x28
nop dword [eax]
lea eax, [edi + esi]
mov dword [ecx - 0xc], 0x40000000
inc edi
mov dword [ecx - 4], 0
mov dword [ecx], eax
lea ecx, [ecx + 0x1c]
cmp edi, ebx
jb 0x491ea0
mov ebx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x30], eax
test edx, edx
je 0x49200c
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + eax*8]
mov eax, dword [esi + eax*8 + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], eax
cmp edi, eax
ja 0x491ffb
mov edx, dword [esp + 0x18]
lea eax, [edi*8]
sub eax, edi
add edx, 4
lea eax, [edx + eax*4]
mov dword [esp + 0x20], eax
nop
bsr esi, ecx
cmp dword [ebx + 0x38], 1
jne 0x491f20
lea edx, [edi - 2]
bsr ecx, edx
shl edx, 8
shr edx, cl
lea eax, [ecx + 0x10]
add eax, esi
shl eax, 8
add edx, eax
jmp 0x491f7d
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
inc eax
bsr ecx, eax
shl eax, 8
sub esi, ecx
shr eax, cl
shl esi, 8
sub esi, eax
lea eax, [edi - 3]
add esi, dword [ebx + 0x34]
cmp eax, 0x7f
jbe 0x491f49
bsr ecx, eax
add ecx, 0x24
jmp 0x491f50
movzx ecx, byte [edi + 0x520acd]
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x24]
inc edx
bsr ecx, edx
movzx eax, byte [eax + 0x520990]
sub eax, ecx
shl edx, 8
shl eax, 8
shr edx, cl
sub eax, edx
add eax, dword [ebx + 0x30]
lea edx, [eax + 0x33]
add edx, esi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [eax]
add eax, edx
mov dword [esi + 4], edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 8], 0
cmp dword [ebx + 0x38], 1
jne 0x491fbb
mov eax, 1
bsr ecx, eax
mov eax, pe_nt_image_headers32
mov edx, ecx
shr eax, cl
shl edx, 8
add edx, eax
jmp 0x491fd4
mov eax, dword [ebx + 4]
mov eax, dword [eax]
inc eax
bsr ecx, eax
shl eax, 8
imul edx, ecx, 0xffffff00
shr eax, cl
sub edx, eax
add edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x28]
inc edi
mov ecx, dword [esp + 0x14]
add eax, edx
mov dword [esi - 4], eax
add esi, 0x1c
mov dword [esp + 0x20], esi
cmp edi, dword [esp + 0x48]
jbe 0x491f00
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, edx
jb 0x491ed1
mov edx, dword [esp + 0x18]
lea eax, [edi*8]
sub eax, edi
lea esi, [edi - 1]
mov edi, 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], edi
mov dword [edx + eax*4], 0x40000000
cmp esi, edi
jb 0x4929a9
nop dword [eax + eax]
mov ecx, dword [esp + 0x2c]
lea eax, [edi*8]
sub eax, edi
add ecx, edi
mov dword [esp + 0x20], ecx
lea edi, [edx + eax*4]
mov eax, dword [edi - 0x10]
mov dword [esp + 0x28], eax
inc eax
cmp dword [ebx + 0x40], 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
jne 0x492076
mov dword [esp + 0x14], 0x800
jmp 0x4920b5
cmp dword [ebx + 0x38], 1
jne 0x492086
mov dword [esp + 0x14], 0x600
jmp 0x4920b5
movzx ecx, byte [ecx - 1]
mov eax, dword [ebx]
mov esi, dword [ebx + 0x28]
mov eax, dword [eax + ecx*4]
inc eax
lea edx, [esi - 0x100]
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
cmp eax, edx
cmovbe edx, eax
mov eax, dword [esp + 0x30]
sub esi, edx
mov dword [esp + 0x14], esi
cmp dword [ebx + 0x38], 1
jne 0x4920cd
lea esi, [eax + 1]
bsr ecx, esi
shl esi, 8
shr esi, cl
shl ecx, 8
add esi, ecx
jmp 0x492124
cmp eax, 0x20000
jne 0x4920ec
push 2
push ebx
push 0x1ffff
call fcn.00493250
add esp, 0xc
lea esi, [eax + 0x100]
jmp 0x492120
cmp eax, 0x3f
jbe 0x4920f9
bsr edx, eax
add edx, 0x13
jmp 0x492100
movzx edx, byte [eax + 0x520a90]
mov eax, dword [ebx + 4]
movzx esi, byte [edx + 0x520920]
mov eax, dword [eax + edx*4]
inc eax
bsr ecx, eax
shl eax, 8
sub esi, ecx
shr eax, cl
shl esi, 8
sub esi, eax
add esi, dword [ebx + 0x2c]
mov eax, dword [esp + 0x30]
cmp dword [ebx + 0x38], 1
jne 0x49213b
bsr ecx, eax
mov edx, eax
shl edx, 8
shr edx, cl
shl ecx, 8
add edx, ecx
jmp 0x492192
mov eax, dword [esp + 0x28]
cmp eax, 0x20000
jne 0x49215e
push 2
push ebx
push 0x1ffff
call fcn.00493250
add esp, 0xc
lea edx, [eax + 0x100]
jmp 0x492192
cmp eax, 0x3f
jbe 0x49216b
bsr edx, eax
add edx, 0x13
jmp 0x492172
movzx edx, byte [eax + 0x520a90]
mov eax, dword [ebx + 4]
mov eax, dword [eax + edx*4]
movzx edx, byte [edx + 0x520920]
inc eax
bsr ecx, eax
shl eax, 8
sub edx, ecx
shr eax, cl
shl edx, 8
sub edx, eax
add edx, dword [ebx + 0x2c]
mov ecx, dword [edi - 0x1c]
sub ecx, edx
add ecx, esi
add ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
cmp ecx, dword [edi]
jg 0x4925c5
mov eax, dword [edi + 0x18]
movups xmm1, xmmword [edi]
mov esi, dword [esp + 0x30]
movq xmm2, qword [edi + 0x10]
movups xmm0, xmmword [edi - 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi - 4]
movups xmmword [edi], xmm0
movq xmm0, qword [edi - 0xc]
movq qword [edi + 0x10], xmm0
movaps xmm0, xmm1
mov dword [edi + 0x18], eax
psrldq xmm0, 0xc
movd eax, xmm0
mov dword [edi + 0xc], esi
mov dword [edi], ecx
test eax, eax
jne 0x4925c5
cmp dword [ebx + 0x38], 1
jne 0x49221e
mov eax, 2
bsr ecx, eax
mov eax, 0x200
shr eax, cl
mov edx, ecx
shl edx, 8
add edx, eax
mov eax, 1
bsr ecx, eax
mov eax, pe_nt_image_headers32
shr eax, cl
shl ecx, 8
add eax, ecx
jmp 0x492277
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 0x2c]
mov ebx, dword [0x520921]
movzx edi, bl
mov eax, dword [edx + 4]
inc eax
mov ebx, dword [esp + 0x54]
bsr ecx, eax
shl eax, 8
sub edi, ecx
shr eax, cl
shl edi, 8
mov ecx, edi
mov dword [esp + 0x14], edi
sub ecx, eax
mov edi, dword [esp + 0x24]
mov eax, dword [edx]
add ecx, esi
inc eax
mov dword [esp + 0x14], ecx
bsr ecx, eax
mov edx, dword [esp + 0x14]
shl eax, 8
shr eax, cl
imul ecx, ecx, 0xffffff00
sub ecx, eax
mov eax, ecx
mov dword [esp + 0x28], ecx
add eax, esi
mov esi, dword [esp + 0x30]
sub edx, eax
jns 0x4925c5
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x40]
jae 0x4925c5
cmp dword [ebx + 0x40], 2
mov edx, dword [ebx + 0x38]
jne 0x4922a6
mov edi, 0x800
cmp edx, 1
jne 0x492320
jmp 0x4922b0
cmp edx, 1
jne 0x4922f7
mov edi, 0x600
mov eax, 2
bsr ecx, eax
mov eax, 0x200
shr eax, cl
shl ecx, 8
add eax, ecx
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [ebx + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov eax, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ecx
bsr ecx, eax
mov eax, pe_nt_image_headers32
shr eax, cl
shl ecx, 8
add eax, ecx
jmp 0x492387
movzx ecx, byte [eax]
mov eax, dword [ebx]
mov edi, dword [ebx + 0x28]
mov eax, dword [eax + ecx*4]
inc eax
lea edx, [edi - 0x100]
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
cmp eax, edx
cmovbe edx, eax
sub edi, edx
mov edx, dword [ebx + 0x38]
lea eax, [ebx + 4]
mov dword [esp + 0x5c], eax
lea esi, [ebx + 0x2c]
mov eax, dword [eax]
mov ebx, dword [0x520921]
mov dword [esp + 0x60], esi
movzx esi, bl
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x54]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
sub esi, ecx
shl esi, 8
mov ecx, esi
mov dword [esp + 0x14], esi
sub ecx, eax
lea esi, [ebx + 0x2c]
add ecx, dword [esi]
lea eax, [ebx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], esi
mov eax, dword [eax]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
imul ecx, ecx, 0xffffff00
sub ecx, eax
mov eax, ecx
add eax, dword [esi]
mov esi, dword [esp + 0x30]
sub edi, eax
movd eax, xmm1
add edi, eax
add edi, dword [esp + 0x14]
cmp dword [ebx + 0x40], 2
mov dword [esp + 0x28], edi
jne 0x4923b1
mov dword [esp + 0x14], 0x800
lea edi, [esi + 1]
mov eax, edi
cmp edx, 1
jne 0x49240b
jmp 0x4923c3
cmp edx, 1
jne 0x4923d8
lea edi, [esi + 1]
mov dword [esp + 0x14], 0x600
mov eax, edi
lea esi, [eax + 1]
bsr ecx, esi
shl esi, 8
shr esi, cl
shl ecx, 8
add esi, ecx
jmp 0x492464
mov eax, dword [esp + 0x20]
mov edi, dword [ebx + 0x28]
movzx ecx, byte [eax]
mov eax, dword [ebx]
lea edx, [edi - 0x100]
mov eax, dword [eax + ecx*4]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
cmp eax, edx
cmovbe edx, eax
sub edi, edx
mov dword [esp + 0x14], edi
lea edi, [esi + 1]
mov eax, edi
cmp eax, 0x20000
jne 0x49242a
push 2
push ebx
push 0x1ffff
call fcn.00493250
add esp, 0xc
lea esi, [eax + 0x100]
jmp 0x492464
cmp eax, 0x3f
jbe 0x492437
bsr edx, eax
add edx, 0x13
jmp 0x49243e
movzx edx, byte [eax + 0x520a90]
mov eax, dword [esp + 0x5c]
movzx esi, byte [edx + 0x520920]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
inc eax
bsr ecx, eax
shl eax, 8
sub esi, ecx
shr eax, cl
shl esi, 8
sub esi, eax
mov eax, dword [esp + 0x60]
add esi, dword [eax]
cmp dword [ebx + 0x38], 1
jne 0x492479
bsr ecx, edi
shl edi, 8
shr edi, cl
shl ecx, 8
add edi, ecx
jmp 0x4924d6
mov eax, dword [esp + 0x30]
cmp eax, 0x20000
jne 0x49249c
push 2
push ebx
push 0x1ffff
call fcn.00493250
add esp, 0xc
lea edi, [eax + 0x100]
jmp 0x4924d6
cmp eax, 0x3f
jbe 0x4924a9
bsr edx, eax
add edx, 0x13
jmp 0x4924b0
movzx edx, byte [eax + 0x520a90]
mov eax, dword [esp + 0x64]
movzx edi, byte [edx + 0x520920]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
inc eax
bsr ecx, eax
shl eax, 8
sub edi, ecx
shr eax, cl
shl edi, 8
sub edi, eax
mov eax, dword [esp + 0x48]
add edi, dword [eax]
mov edx, dword [esp + 0x28]
sub esi, edi
add esi, dword [esp + 0x50]
add esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
cmp edx, esi
jge 0x4925c5
cmp edx, dword [edi + 0x1c]
jge 0x4925c5
mov ecx, dword [esp + 0x1c]
movaps xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x18]
movq xmm0, qword [ecx + eax*4 + 0x10]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x18]
movq qword [esp + 0x70], xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd esi, xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], ecx
cmp esi, 3
jbe 0x492558
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x74], eax
lea eax, [esi - 3]
mov dword [esp + 0x70], eax
jmp 0x492592
mov edx, dword [esp + 0x50]
xor eax, eax
cmp dword [edx + 0xc], eax
mov edx, dword [esp + 0x28]
sete al
dec eax
add eax, esi
je 0x492592
cmp eax, 3
jne 0x492579
mov esi, dword [esp + 0x70]
dec esi
jmp 0x492582
mov esi, dword [esp + eax*4 + 0x70]
cmp eax, 2
jb 0x492586
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], esi
movq xmm0, qword [esp + 0x70]
mov eax, dword [esp + 0x1c]
movups xmmword [edi + 0x1c], xmm1
inc eax
movq qword [edi + 0x2c], xmm2
movq qword [edi + 0x2c], xmm0
mov dword [edi + 0x34], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [edi + 0x28], 1
cmovb ecx, eax
mov dword [edi + 0x1c], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x49267c
mov ecx, dword [esp + 0x1c]
sub ecx, dword [edi + 8]
mov edx, dword [edi + 4]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x18]
movq xmm0, qword [ecx + eax*4 + 0x10]
lea esi, [ecx + eax*4]
mov ecx, dword [esi + 0x18]
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], ecx
cmp edx, 3
jbe 0x492629
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x94], eax
lea eax, [edx - 3]
mov dword [esp + 0x90], eax
jmp 0x492668
xor eax, eax
cmp dword [esi + 0xc], eax
sete al
dec eax
add eax, edx
je 0x492668
mov esi, dword [esp + 0x90]
cmp eax, 3
jne 0x492647
lea edx, [esi - 1]
jmp 0x492653
mov edx, dword [esp + eax*4 + 0x90]
cmp eax, 2
jb 0x49265a
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edx
movq xmm0, qword [esp + 0x90]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x20], eax
ja 0x492956
cmp dword [esp + 0x1c], esi
je 0x4929a5
xor eax, eax
test ecx, ecx
sete al
cmp dword [ebx + 0x38], 1
mov dword [esp + 0x4c], eax
jne 0x4926c4
mov eax, 1
bsr ecx, eax
mov eax, pe_nt_image_headers32
mov edx, ecx
shr eax, cl
shl edx, 8
add edx, eax
jmp 0x4926dd
mov eax, dword [ebx + 4]
mov eax, dword [eax]
inc eax
bsr ecx, eax
shl eax, 8
imul edx, ecx, 0xffffff00
shr eax, cl
sub edx, eax
add edx, dword [ebx + 0x2c]
push dword [esp + 0x6c]
mov eax, dword [edi]
push dword [esp + 0x50]
add eax, edx
mov dword [esp + 0x58], eax
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x28]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0xc4]
push edi
push eax
push dword [esp + 0xd0]
push dword [esp + 0x50]
call dword [esp + 0xdc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
sub eax, edi
sub edi, dword [esp + 0xac]
push eax
push edi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x120]
push eax
call fcn.00493300
mov edi, dword [esp + 0x48]
add esp, 0x34
test edi, edi
je 0x492956
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + edi*8 - 4]
cmp ecx, dword [esp + 0xc0]
ja 0x49296d
mov eax, dword [esp + 0x1c]
add eax, ecx
cmp eax, 0x1000
jae 0x49296d
add eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x40]
jae 0x49296d
xor edx, edx
mov dword [esp + 0x5c], edx
test edi, edi
je 0x49293d
mov eax, dword [esp + 0x34]
add eax, 0xfffffffc
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], ecx
lea ecx, [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4927b2
mov eax, dword [eax]
inc eax
jmp 0x4927b6
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x60], eax
cmp ecx, eax
jb 0x49292c
mov esi, dword [esp + 0x1c]
lea edx, [ecx + 0x520acd]
mov dword [esp + 0x64], edx
lea edi, [ecx + esi]
mov ecx, dword [esp + 0x18]
lea eax, [edi*8]
sub eax, edi
lea eax, [ecx + eax*4]
mov ecx, 0xfffffffe
mov dword [esp + 0x24], eax
sub ecx, esi
mov eax, 0xfffffffd
mov dword [esp + 0x30], ecx
sub eax, esi
mov dword [esp + 0x4c], eax
nop dword [eax]
mov eax, dword [esp + 0x48]
bsr esi, eax
cmp dword [ebx + 0x38], 1
jne 0x492824
lea eax, [ecx + edi]
bsr ecx, eax
lea edx, [esi + 0x10]
shl eax, 8
add edx, ecx
shr eax, cl
shl edx, 8
add edx, eax
jmp 0x492880
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
inc eax
bsr ecx, eax
shl eax, 8
sub esi, ecx
shr eax, cl
shl esi, 8
sub esi, eax
mov eax, dword [esp + 0x4c]
add esi, dword [ebx + 0x34]
add eax, edi
cmp eax, 0x7f
jbe 0x492850
bsr ecx, eax
add ecx, 0x24
jmp 0x492853
movzx ecx, byte [edx]
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x28]
inc edx
bsr ecx, edx
movzx eax, byte [eax + 0x520990]
sub eax, ecx
shl edx, 8
shl eax, 8
shr edx, cl
sub eax, edx
add eax, dword [ebx + 0x30]
lea edx, [eax + 0x33]
add edx, esi
add edx, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
cmp edi, esi
ja 0x492896
mov eax, dword [esp + 0x24]
cmp edx, dword [eax]
jge 0x4928fc
jmp 0x4928c6
mov ecx, dword [esp + 0x18]
lea eax, [esi*8]
sub eax, esi
lea eax, [ecx + eax*4]
mov ecx, edi
sub ecx, esi
mov esi, edi
mov dword [esp + 0x38], esi
mov dword [eax + 0x1c], 0x40000000
lea eax, [eax + 0x1c]
mov dword [eax + 0xc], 1
sub ecx, 1
jne 0x4928b0
mov ebx, dword [esp + 0x18]
lea eax, [edi*8]
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ebx + eax*4 + 8], ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
mov dword [ecx + eax*4 + 4], ebx
mov ebx, ecx
mov dword [ebx + eax*4 + 0xc], 0
mov dword [ebx + eax*4], edx
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub eax, 0x1c
mov edx, dword [esp + 0x64]
dec ecx
dec edx
mov dword [esp + 0x20], ecx
dec edi
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], edx
jae 0x492800
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x5c], edx
cmp edx, edi
jb 0x492795
mov edx, dword [esp + 0x18]
lea ecx, [esi + 1]
lea eax, [ecx*8]
sub eax, ecx
mov dword [edx + eax*4], 0x40000000
jmp 0x49295a
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, esi
jbe 0x492040
jmp 0x4929a9
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
movaps xmm2, xmmword [esp + 0xe0]
mov dword [esp + 0xcc], ecx
mov edx, dword [edx + edi*8 - 8]
xor edi, edi
mov dword [esp + 0xc8], edx
lea esi, [ecx + eax]
mov dword [esp + 0xd0], edi
movups xmm1, xmmword [esp + 0xc4]
jmp 0x4929f9
mov edx, dword [esp + 0x18]
lea eax, [esi*8]
sub eax, esi
movups xmm1, xmmword [edx + eax*4]
movq xmm2, qword [edx + eax*4 + 0x10]
mov eax, dword [edx + eax*4 + 0x18]
movaps xmm0, xmm1
psrldq xmm0, 8
mov dword [esp + 0x88], eax
mov eax, esi
movd ecx, xmm0
movups xmmword [esp + 0xc4], xmm1
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0xc8]
sub eax, ecx
movaps xmmword [esp + 0xe0], xmm2
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x492a0c
mov ecx, dword [esp + 0x2c]
add ecx, esi
mov dword [esp + 0x2c], ecx
jmp 0x492d55
test edi, edi
jne 0x492ac1
mov ecx, dword [esp + 0x18]
shl eax, 3
sub eax, dword [esp + 0x1c]
movq xmm0, qword [ecx + eax*4 + 0x10]
lea esi, [ecx + eax*4]
mov ecx, dword [esi + 0x18]
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], ecx
cmp edx, 3
jbe 0x492a61
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xa4], eax
lea eax, [edx - 3]
mov dword [esp + 0xa0], eax
jmp 0x492aa0
xor eax, eax
cmp dword [esi + 0xc], eax
sete al
dec eax
add eax, edx
je 0x492aa0
mov esi, dword [esp + 0xa0]
cmp eax, 3
jne 0x492a7f
lea edx, [esi - 1]
jmp 0x492a8b
mov edx, dword [esp + eax*4 + 0xa0]
cmp eax, 2
jb 0x492a92
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x68]
movq xmm0, qword [esp + 0xa0]
mov eax, dword [esp + 0x1c]
movq qword [edx], xmm0
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x88]
jmp 0x492ad9
mov ecx, dword [esp + 0x68]
sub eax, edi
mov edx, dword [esp + 0x88]
mov dword [esp + 0x1c], eax
movq qword [ecx], xmm2
mov dword [ecx + 8], edx
lea esi, [eax + 2]
lea eax, [esi*8]
mov dword [esp + 0x20], esi
sub eax, esi
test edi, edi
mov edi, dword [esp + 0x18]
je 0x492b00
movups xmmword [edi + eax*4 - 0x1c], xmm1
movq qword [edi + eax*4 - 0xc], xmm2
mov dword [edi + eax*4 - 4], edx
lea ecx, [edi + eax*4]
mov eax, dword [esp + 0x1c]
shl eax, 3
sub eax, dword [esp + 0x1c]
movups xmmword [ecx], xmm1
movq qword [ecx + 0x10], xmm2
mov dword [ecx + 0x18], edx
mov edx, esi
movups xmm1, xmmword [edi + eax*4]
movq xmm2, qword [edi + eax*4 + 0x10]
mov eax, dword [edi + eax*4 + 0x18]
movaps xmm0, xmm1
psrldq xmm0, 0xc
mov dword [esp + 0x3c], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edi, xmm0
mov dword [ecx + 0xc], eax
test edi, edi
je 0x492bb9
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
lea ecx, [ecx - 0x1c]
add eax, edi
movups xmmword [ecx], xmm1
dec edx
movq qword [ecx + 0x10], xmm2
mov dword [ecx + 0x18], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov dword [esp + 0x1c], ebx
lea eax, [ebx*8]
sub eax, ebx
movups xmm1, xmmword [esi + eax*4]
mov ebx, dword [esi + eax*4 + 0x18]
movq xmm2, qword [esi + eax*4 + 0x10]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edi, xmm0
mov dword [ecx + 0xc], eax
test edi, edi
jne 0x492b54
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
cmp edx, esi
ja 0x492cfb
mov ecx, dword [esp + 0x18]
lea edi, [edx*8]
sub edi, edx
add ecx, 8
sub esi, edx
mov edx, dword [esp + 0x44]
inc esi
mov dword [esp + 0x20], esi
lea edi, [ecx + edi*4]
mov dword [esp + 0x24], edi
nop dword [eax + eax]
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov dword [esp + 0x4c], eax
lea ecx, [eax + esi]
mov dword [esp + 0x50], ecx
lea ecx, [esi + edx]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x492ce9
mov ecx, dword [edi - 4]
push eax
push ecx
push edx
push esi
push ebx
mov dword [esp + 0x50], ecx
call fcn.00493d80
mov ecx, dword [esp + 0x54]
add esp, 0x14
mov edx, dword [esp + 0x58]
add ecx, 0xffffffe0
mov eax, dword [edx + 0xc]
cmp dword [esp + 0x2c], ecx
ja 0x492d75
mov ecx, dword [esp + 0x44]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
cmp esi, 0x10
jbe 0x492c80
movups xmm0, xmmword [ecx + 0x10]
lea edx, [ecx + 0x10]
mov ecx, dword [esp + 0x58]
lea eax, [esi - 0x10]
mov ecx, dword [ecx + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x492c78
add ecx, 0x10
add edx, 0x10
nop
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
cmp ecx, edi
jb 0x492c60
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
add dword [edx + 0xc], esi
cmp esi, 0xffff
jbe 0x492c9d
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 3
mov dword [edx + 0x24], 1
mov dword [edx + 0x28], eax
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x3c]
mov word [eax + 4], si
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffffd
cmp ecx, 0xffff
jbe 0x492cce
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 3
mov dword [edx + 0x24], 2
mov dword [edx + 0x28], eax
mov eax, dword [edx + 4]
mov word [eax + 6], cx
add dword [edx + 4], 8
mov edx, dword [esp + 0x44]
add edx, dword [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], edx
add edi, 0x1c
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], edi
jne 0x492be0
cmp dword [ebx + 0x40], 2
je 0x492d15
mov eax, dword [ebx + 0x18]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x1c]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x20]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x24]
inc eax
bsr ecx, eax
shl eax, 8
shr eax, cl
shl ecx, 8
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x34], eax
mov edi, dword [esp + 0x34]
cmp ecx, dword [esp + 0x84]
jb 0x491d40
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push dword [esp + 0x30]
push dword [esp + 0x4c]
push eax
call fcn.0045ae30
add esp, 0x10
jmp 0x492c7c