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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x60], ecx
xor ecx, ecx
push esi
mov esi, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x47], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], esi
push edi
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x28], edi
test esi, esi
jne 0x100806da
cmp dword [eax + 0x78], esi
jne 0x100806c9
test byte [ecx + 0x44], 8
jne 0x100806c9
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.1004f440
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x60], esi
movsx eax, word [edx + 0x2a]
xor ecx, ecx
test byte [edx + 0x24], 0x20
xorps xmm0, xmm0
mov dword [esp + 0x38], eax
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x88], ecx
jne 0x1008070a
mov dword [esp + 0x34], ecx
mov dword [esp + 0x74], 1
jmp 0x10080735
mov edx, dword [edx + 8]
mov dword [esp + 0x34], edx
test edx, edx
je 0x1008072d
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x10080725
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x10080715
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], edx
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x10080996
xor edx, edx
mov dword [esp + 0x3c], edx
nop dword [eax]
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp ecx, eax
je 0x1008097e
test edi, edi
je 0x1008076e
cmp dword [edi + ecx*4], 0
jl 0x1008097e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
movzx edi, byte [eax + edx + 0xc]
test edi, edi
je 0x1008097a
mov cl, byte [ebp + 0x20]
cmp cl, 0xb
je 0x100807b6
movzx edi, cl
cmp edi, 5
jne 0x1008079f
cmp dword [eax + edx + 4], 0
mov eax, 2
cmove edi, eax
mov ecx, dword [esp + 0x24]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x100807af
jmp dword [eax*4 + 0x10081f64]
cmp edi, 0xb
jne 0x1008078d
mov edi, 2
jmp 0x1008079f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
push dword [eax + edx]
push dword [ecx]
push str._s._s
push dword [esp + 0x8c]
call fcn.10031dd0
mov ecx, dword [esp + 0x34]
mov edx, 0x41
mov dword [esp + 0x3c], eax
inc ecx
mov eax, dword [ebp + 0x14]
add eax, ecx
mov ecx, esi
push eax
push edi
push 0x513
call fcn.1004f7a0
mov ecx, dword [esi]
add esp, 0x1c
mov edx, dword [esp + 0x2c]
cmp byte [ecx + 0x49], 0
je 0x1008082f
push edx
mov edx, 0xfffffff9
call fcn.10050470
add esp, 4
jmp 0x10080844
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x88]
mov edi, dword [esp + 0x28]
test eax, eax
jle 0x10080862
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x24]
jmp 0x1008097e
mov eax, dword [ebp + 0x14]
inc ecx
push dword [ebp + 0x24]
add eax, ecx
mov edx, 0x32
push eax
mov ecx, esi
call fcn.1004f8f0
add esp, 8
jmp 0x10080976
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
inc edx
mov edi, dword [esi + 0x88]
add edx, ecx
mov dword [esp + 0x2c], edx
cmp dword [eax + 0x30], edi
jg 0x100808bd
push 0
push 0
push edx
mov edx, 0x33
mov ecx, esi
call fcn.1004f760
mov edx, dword [esp + 0x38]
add esp, 0xc
mov edi, eax
jmp 0x100808f3
lea eax, [edi + 1]
mov dword [esi + 0x88], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 4]
test eax, eax
je 0x1008091d
cmp byte [eax], 0x9a
jne 0x1008091d
push edx
push dword [eax + 0x1c]
mov eax, dword [esp + 0x1c]
mov edx, 0x4b
mov ecx, dword [eax + 8]
jmp 0x10080946
mov ecx, dword [esp + 0x14]
push edx
mov edx, eax
call fcn.10069a70
mov edx, dword [esp + 0x30]
add esp, 4
cmp eax, edx
je 0x1008094e
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1008094e
push edx
push eax
mov edx, 0x4c
call fcn.1004f8f0
add esp, 8
mov edx, dword [esi + 0x88]
test edi, edi
jns 0x1008095b
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1008096a
mov eax, 0x10142c24
jmp 0x10080973
mov eax, dword [esi + 0x58]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add dword [esp + 0x3c], 0x10
inc ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x38]
jl 0x10080750
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x10080c1f
mov eax, dword [esp + 0x80]
test dword [eax + 0x1c], 0x200
jne 0x10080c1f
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
not eax
mov dword [edx + 0x38], eax
mov al, byte [ebp + 0x20]
cmp al, 0xb
je 0x100809d9
movzx eax, al
mov dword [esp + 0x3c], eax
jmp 0x100809e1
mov dword [esp + 0x3c], 2
xor edx, edx
mov dword [esp + 0x30], edx
cmp dword [ecx], edx
jle 0x10080c14
lea eax, [ecx + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [eax - 4]
mov dword [esp + 0x7c], ecx
test edi, edi
je 0x10080a68
xorps xmm0, xmm0
mov dword [esp + 0xd8], 0
xor al, al
movaps xmmword [esp + 0xc0], xmm0
movq qword [esp + 0xd0], xmm0
mov byte [esp + 0xd4], al
mov dword [esp + 0xc4], 0x10080600
mov dword [esp + 0xd8], edi
test ecx, ecx
je 0x10080a58
mov edx, ecx
lea ecx, [esp + 0xc0]
call fcn.100621f0
mov al, byte [esp + 0xd4]
mov edx, dword [esp + 0x30]
cmp byte [ebp + 0x1c], 0
jne 0x10080a60
and al, 0xfd
test al, al
je 0x10080bf8
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], ecx
mov edi, dword [ecx + 0x44]
lea eax, [edi + 1]
mov dword [ecx + 0x44], eax
lea eax, [edi - 1]
test edi, eax
jne 0x10080a9d
mov edx, dword [ecx + 0x48]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.1002fd70
mov ecx, dword [esp + 0x54]
add esp, 8
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x10080aab
mov dword [eax + edi*4], 0xffffffff
push 0x10
not edi
push edi
push dword [esp + 0x84]
push dword [esp + 0x20]
call fcn.1006b0d0
mov edx, dword [esp + 0x4c]
add esp, 0x10
cmp edx, 4
jne 0x10080b2f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10080af5
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.1004f760
add esp, 0xc
jmp 0x10080bd5
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10080bd5
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x10080b47
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
cmp edx, 5
mov eax, 2
cmove edx, eax
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x64], eax
test eax, eax
jne 0x10080b87
cmp dword [ecx + 0x78], eax
jne 0x10080b76
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x10080b76
mov byte [ecx + 0x17], 1
call fcn.1004f440
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
cmp edx, 2
jne 0x10080b98
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x64]
push 0
push dword [esp + 0x30]
push 0
push edx
push 0x113
mov edx, 0x42
call fcn.1004fc00
mov eax, dword [esp + 0x78]
add esp, 0x14
mov ecx, dword [eax + 0x88]
test ecx, ecx
jle 0x10080bd5
mov eax, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x10080bf4
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
inc edx
mov eax, dword [esp + 0x50]
add eax, 0x18
mov dword [esp + 0x30], edx
mov dword [esp + 0x50], eax
cmp edx, dword [ecx]
jl 0x100809f6
mov eax, dword [esp + 0x14]
mov dword [eax + 0x38], 0
mov edi, dword [esp + 0x68]
test edi, edi
je 0x10080d0e
cmp dword [edi], 0
jne 0x10080c62
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov byte [ebp + 0x20], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edx
jmp 0x10080d2f
mov eax, dword [edi + 0x10]
mov dword [esp + 0x84], eax
test eax, eax
je 0x10080d0e
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x64], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x44], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x10080ca9
mov edx, dword [edi + 0x48]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.1002fd70
mov ecx, dword [esp + 0x6c]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10080cb7
mov dword [eax + ecx*4], 0xffffffff
mov edi, dword [esi + 0xc]
not ecx
mov eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x70], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x44], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x10080cf8
mov edx, dword [edi + 0x48]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.1002fd70
mov ecx, dword [esp + 0x78]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10080d06
mov dword [eax + ecx*4], 0xffffffff
not ecx
mov dword [esp + 0x70], ecx
jmp 0x10080d2f
mov eax, dword [esp + 0xac]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
cmp byte [ebp + 0x1c], 0
je 0x100811b2
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x100811b2
mov edi, dword [esi + 0xc]
mov edx, dword [edi + 0x44]
mov dword [esp + 0x24], edx
lea eax, [edx + 1]
mov dword [edi + 0x44], eax
lea eax, [edx - 1]
test edx, eax
jne 0x10080d79
lea eax, [edx*8 + 4]
mov edx, dword [edi + 0x48]
push ecx
mov ecx, dword [edi]
push eax
call fcn.1002fd70
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10080d87
mov dword [eax + edx*4], 0xffffffff
mov ecx, dword [esp + 0x18]
not edx
mov al, byte [ebp + 0x20]
mov dword [esp + 0x24], edx
movzx edi, byte [ecx + 0x30]
cmp al, 0xb
je 0x10080da1
movzx edi, al
jmp 0x10080dac
cmp edi, 0xb
mov esi, 2
cmove edi, esi
cmp dword [esp + 0x68], 0
mov esi, dword [esp + 0x60]
je 0x10080e1d
mov edx, dword [esp + 0x68]
cmp dword [edx + 0x10], 0
mov edx, dword [esp + 0x24]
jne 0x10080e1d
mov edi, dword [esp + 0x68]
cmp dword [edi + 8], 0
jne 0x10080e16
mov edi, 4
mov eax, dword [esp + 0xa0]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x50], eax
je 0x10080f03
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10080ead
push dword [ebp + 0x18]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x35
call fcn.1004f760
add esp, 0xc
jmp 0x10080ee1
mov edi, 6
jmp 0x10080e22
cmp edi, 5
jb 0x10080dd4
cmp dword [esp + 0x68], 0
jne 0x10080e30
movzx eax, al
cmp edi, eax
je 0x10080dd4
cmp dword [ecx + 8], 0
je 0x10080dd4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
cmp dword [eax + 0x30], edx
jg 0x10080e67
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.1004f760
mov edx, eax
add esp, 0xc
lea eax, [edx + 1]
mov edx, dword [esp + 0x24]
jmp 0x10080ddb
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edx + 1]
mov edx, dword [esp + 0x24]
jmp 0x10080ddb
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
mov edx, dword [esp + 0x24]
test eax, eax
jle 0x10080f03
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10080f29
push dword [ebp + 0x14]
mov ecx, esi
push edx
push dword [ebp + 0xc]
mov edx, 0x20
call fcn.1004f760
add esp, 0xc
jmp 0x10080f5d
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi - 1]
cmp eax, 5
ja case.default.0x10080f69
jmp dword [eax*4 + 0x10081f74]
mov eax, dword [esp + 0x80]
xor edi, edi
test dword [eax + 0x1c], 0x2000
je 0x10080fc8
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x10080f9e
mov edx, dword [esp + 0x18]
call fcn.10093430
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10080fb7
cmp byte [ecx + 8], 0x6e
jne 0x10080fb0
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10080fa4
xor eax, eax
test edi, edi
cmovne eax, edx
mov dword [esp + 0x2c], eax
mov edi, eax
test eax, eax
jne 0x1008101f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0
call fcn.1007dbe0
add esp, 8
test eax, eax
jne 0x1008101f
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], eax
je 0x10081053
mov edi, dword [esp + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov eax, dword [edi + 0x78]
test eax, eax
push dword [ebp + 0xc]
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.100785d0
add esp, 0x10
mov dword [esp + 0x8c], 1
jmp 0x100810ed
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x78]
test eax, eax
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x34]
push edi
call fcn.100780f0
add esp, 0x24
mov dword [esp + 0x8c], 1
jmp 0x100810ed
push dword [ebp + 0xc]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x20]
call fcn.100977c0
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.1004f960
jmp 0x100810ed
mov edi, 2
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x100810c1
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov eax, dword [esp + 0x18]
push dword [edx]
push str._s._s
push dword [eax]
call fcn.10031dd0
add esp, 0x10
mov edx, 0x613
jmp 0x100810db
push dword [edx]
mov eax, dword [esp + 0x18]
push str._s.rowid
push dword [eax]
call fcn.10031dd0
add esp, 0xc
mov edx, 0xa13
mov ecx, dword [esp + 0x14]
push 2
push 0xfffffffffffffff9
push eax
push edi
call fcn.10075de0
add esp, 0x10
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x1008110c
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x50]
test edi, edi
je 0x100811bd
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x88], ecx
cmp dword [eax + 0x30], ecx
jg 0x1008114b
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.1004f760
add esp, 0xc
mov dword [esp + 0x88], eax
jmp 0x10081181
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x88]
lea ecx, [edi - 1]
test ecx, ecx
jns 0x10081191
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x100811a3
mov eax, 0x10142c24
mov dword [eax + 8], edx
jmp 0x100811bd
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x100811bd
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10081ecd
mov edx, dword [esp + 0x44]
xor ecx, ecx
nop
cmp dword [edx + ecx*4], 0
je 0x10081eb9
cmp dword [esp + 0x84], eax
jne 0x10081289
mov eax, dword [esp + 0x70]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x90], edx
cmp dword [eax + 0x30], edx
jg 0x10081232
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.1004f760
add esp, 0xc
mov dword [esp + 0x90], eax
jmp 0x10081268
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x100812d6
mov eax, dword [esp + 0x64]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x100812d6
mov edi, dword [esi + 0xc]
mov edx, dword [edi + 0x44]
mov dword [esp + 0x28], edx
lea eax, [edx + 1]
mov dword [edi + 0x44], eax
lea eax, [edx - 1]
test edx, eax
jne 0x100812be
mov ecx, dword [edi]
lea eax, [edx*8 + 4]
mov edx, dword [edi + 0x48]
push 0
push eax
call fcn.1002fd70
mov edx, dword [esp + 0x30]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x100812cc
mov dword [eax + edx*4], 0xffffffff
mov edi, dword [esp + 0x18]
not edx
mov dword [esp + 0x28], edx
cmp byte [esp + 0x4b], 0
jne 0x100812f3
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.1007ebb0
add esp, 4
mov byte [esp + 0x4b], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x24], 0
je 0x100813d5
mov eax, dword [esp + 0x44]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10081330
push 0
push edx
push 0
mov edx, 0x46
mov ecx, esi
call fcn.1004f760
add esp, 0xc
jmp 0x10081362
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
not eax
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x10081399
push 0
push 0
mov ecx, eax
call fcn.10065990
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 8
jmp 0x1008139b
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x100813b5
push 0x10
push dword [esp + 0x2c]
push edi
push ecx
call fcn.1006b460
mov eax, dword [esp + 0x3c]
add esp, 0x10
test edi, edi
je 0x100813c2
mov edx, edi
mov ecx, eax
call fcn.100657b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
xor edi, edi
mov ecx, dword [edx + ecx*4]
xor edx, edx
inc ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x78], ecx
cmp di, word [eax + 0x34]
jae 0x10081537
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], edi
nop dword [eax + eax]
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x10081487
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
not eax
mov dword [edx + 0x38], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x1008144b
push 0
push 0
mov ecx, eax
call fcn.10065990
mov ecx, dword [esp + 0x48]
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 8
jmp 0x1008144d
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x10081466
push ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.1006ac10
mov eax, dword [esp + 0x30]
add esp, 4
test edi, edi
je 0x10081473
mov edx, edi
mov ecx, eax
call fcn.100657b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x38], 0
jmp 0x1008150a
cmp edx, 0xffffffff
je 0x100814a0
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x100814a0
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x100814a3
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
sar edx, 0x1f
and edx, 1
add edx, 0x4c
cmp dword [eax + 0x30], ecx
jg 0x100814d1
push 0
push dword [esp + 0x44]
mov ecx, esi
push edi
call fcn.1004f760
mov ecx, dword [esp + 0x4c]
add esp, 0xc
jmp 0x1008150a
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x1c]
inc ecx
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
inc edx
add edi, 0x18
mov dword [esp + 0x38], edx
movzx eax, word [eax + 0x34]
cmp edx, eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
jl 0x10081400
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
movzx edi, word [eax + 0x34]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1008156e
push edx
push edi
push dword [esp + 0x80]
mov edx, 0x65
mov ecx, esi
call fcn.1004f760
add esp, 0xc
jmp 0x100815a0
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x78]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
je 0x100815e8
cmp edi, ecx
jne 0x100815e8
cmp byte [ebp + 0x1c], 0
jne 0x100815e8
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x10081eb1
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x10081eb1
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x100815b8
mov dl, byte [ebp + 0x20]
cmp dl, 0xb
je 0x100815fd
movzx eax, dl
jmp 0x10081608
cmp eax, 0xb
mov edx, 2
cmove eax, edx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x84], ecx
jne 0x10081631
mov ecx, dword [esp + 0x68]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x40], eax
jmp 0x100816be
cmp eax, 5
jne 0x100816ba
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10081672
mov edx, eax
mov ecx, esi
call fcn.1004f960
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x1008166a
mov eax, dword [esp + 0x70]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x50]
test edx, edx
je 0x100816ba
mov ecx, esi
call fcn.1004f960
mov eax, dword [esp + 0x88]
mov ecx, eax
mov edx, dword [esi + 0x88]
test eax, eax
jns 0x10081697
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x100816a6
mov eax, 0x10142c24
jmp 0x100816af
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x1008177c
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x14], 0
jne 0x10081778
cmp edi, ecx
jne 0x10081778
cmp eax, 5
jne 0x10081778
mov eax, dword [esp + 0x80]
test dword [eax + 0x1c], 0x2000
je 0x10081745
mov ecx, dword [esp + 0x14]
xor edi, edi
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x10081717
mov edx, dword [esp + 0x18]
call fcn.10093430
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10081733
nop dword [eax]
cmp byte [ecx + 8], 0x6e
jne 0x1008172c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10081720
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x10081778
mov eax, dword [esp + 0x80]
test dword [eax + 0x1c], 0x4000
mov edi, dword [esp + 0x18]
je 0x100815bc
cmp dword [edi + 0x10], 0
jne 0x10081778
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 0x38
push 0
call fcn.10034500
add esp, 4
cmp dword [eax + 8], 0
je 0x100815bc
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc dword [eax + 0x3c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x4c], edx
movzx edi, word [eax + 0x32]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x7c], edi
cmp dword [eax + 0x30], edx
jg 0x100817c2
push dword [esp + 0x78]
mov eax, dword [ebp + 0x10]
mov edx, 0x1c
push dword [esp + 0x2c]
add eax, ecx
mov ecx, esi
push eax
call fcn.1004f760
add esp, 0xc
mov edx, eax
jmp 0x10081807
mov edi, dword [esp + 0x7c]
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x20]
add esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x78]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
jne 0x1008181e
mov eax, dword [esi + 0x58]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x34]
jne 0x10081832
mov edi, dword [esp + 0x78]
mov dword [esp + 0x24], edi
jmp 0x10081890
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
cmp eax, 1
jne 0x1008185f
mov al, byte [edx + 0x13]
test al, al
jne 0x1008184e
inc dword [edx + 0x2c]
mov edi, dword [edx + 0x2c]
jmp 0x10081888
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov edi, dword [edx + eax*4 + 0x15c]
jmp 0x10081888
mov ecx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x24], edi
cmp eax, ecx
jg 0x1008187b
add eax, edi
sub ecx, dword [esp + 0x74]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x1008188c
mov eax, dword [edx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x74]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
jne 0x100818a1
cmp dword [esp + 0x40], 5
jne 0x10081c5f
mov eax, dword [esp + 0x18]
test byte [eax + 0x24], 0x20
jne 0x1008199a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x100818d9
mov eax, dword [esp + 0x20]
mov edx, 0x84
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push edi
push eax
call fcn.1004f760
add esp, 0xc
jmp 0x10081916
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10081c5f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10081946
push edx
push dword [esp + 0x2c]
mov edx, 0x35
mov ecx, esi
push edi
call fcn.1004f760
add esp, 0xc
jmp 0x10081977
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x10081c5f
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x10081c5f
mov edi, dword [esp + 0x34]
cmp edx, edi
je 0x10081a8e
mov ecx, dword [esp + 0x34]
xor edi, edi
xor eax, eax
mov dword [esp + 0x38], edi
cmp ax, word [ecx + 0x32]
jae 0x10081a8a
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
jle 0x100819ed
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp di, word [eax]
je 0x10081a24
inc ecx
add eax, 2
cmp ecx, edx
jl 0x100819e0
or eax, 0xffffffff
mov ecx, dword [esi + 0x88]
movsx edx, ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x4c], edx
cmp dword [eax + 0x30], ecx
jg 0x10081a29
mov edi, dword [esp + 0x30]
mov ecx, esi
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov edx, 0x62
call fcn.1004f760
add esp, 0xc
jmp 0x10081a66
movzx eax, cx
jmp 0x100819f0
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
inc edi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x30], edi
mov edi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x100819c4
mov edi, dword [esp + 0x34]
cmp dword [ebp + 0x18], 0
je 0x10081c5f
movzx ecx, word [edi + 0x32]
mov eax, dword [esi + 0x88]
add eax, ecx
mov dword [esp + 0x38], 0x34
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x78]
mov dword [esp + 0x4c], edx
xor edx, edx
mov dword [esp + 0x30], edx
test ecx, ecx
je 0x10081c5f
mov eax, dword [ebp + 0x18]
inc eax
mov dword [esp + 0x7c], eax
nop word [eax + eax]
mov eax, dword [edi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], edx
mov edi, dword [eax]
mov ch, byte [edi + 0x46]
mov cl, byte [edi + 0x9d]
mov byte [esp + 0x6f], ch
mov byte [esp + 0x6e], cl
test edx, edx
je 0x10081b29
movzx eax, cl
mov ecx, edi
push eax
call fcn.10076c50
mov cl, byte [esp + 0x72]
add esp, 4
mov edx, dword [esp + 0x94]
mov edi, eax
mov ch, byte [esp + 0x6f]
jmp 0x10081b2c
mov edi, dword [edi + 8]
test edi, edi
je 0x10081b3c
movzx eax, ch
lea eax, [eax + eax*4]
lea edi, [edi + eax*4]
add edi, 0xffffffec
test cl, cl
jne 0x10081b5c
test edi, edi
je 0x10081b4a
cmp dword [edi + 0xc], 0
jne 0x10081b5c
push edx
mov dl, ch
mov ecx, dword [esp + 0x18]
push edi
call fcn.10076b80
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + 4]
movsx eax, word [ecx + edx*2]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], eax
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x10081b8f
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], 0x35
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x88]
add ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x9c], edx
cmp dword [eax + 0x30], edx
jg 0x10081bca
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
push eax
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.1004f760
add esp, 0xc
mov edx, eax
jmp 0x10081c1f
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x9c]
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x38]
mov byte [ecx + 1], 0
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0x7c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
push 0xfffffffffffffffe
push edi
mov ecx, esi
call fcn.100506e0
mov eax, dword [esi + 0x88]
add esp, 8
test eax, eax
jle 0x10081c46
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x30], edx
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x10081ae0
mov edi, dword [esp + 0x40]
lea eax, [edi - 1]
cmp eax, 5
ja case.0x10081c6f.5
jmp dword [eax*4 + 0x10081f8c]
push dword [esp + 0x1c]
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.10075e60
add esp, 4
jmp 0x10081e03
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [esp + 0x68]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.100977c0
add esp, 0xc
jmp 0x10081cb7
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10081ce0
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.1004f760
add esp, 0xc
jmp 0x10081e03
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x10081e03
mov eax, dword [esp + 0x80]
xor edi, edi
test dword [eax + 0x1c], 0x2000
je 0x10081d74
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x10081d48
mov edx, dword [esp + 0x18]
call fcn.10093430
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10081d63
nop
cmp byte [ecx + 8], 0x6e
jne 0x10081d5c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10081d50
xor ecx, ecx
test edi, edi
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
mov edi, ecx
test ecx, ecx
jne 0x10081da9
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test dword [eax + 0x1c], 0x4000
je 0x10081db9
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.10034500
add esp, 4
cmp dword [eax + 8], 0
jne 0x10081da9
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x10081db9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
add eax, edx
push eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x20], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x84]
push dword [esp + 0x38]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.100780f0
add esp, 0x24
mov dword [esp + 0x8c], 1
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0x1c]
jne 0x10081e47
mov eax, dword [esp + 0x90]
mov ecx, eax
mov edx, dword [esi + 0x88]
test eax, eax
jns 0x10081e26
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x10081e38
mov eax, 0x10142c24
mov dword [eax + 8], edx
jmp 0x10081e66
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x10081e66
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x10081e66
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov ecx, edi
call fcn.10069620
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x78]
je 0x10081ea9
mov ecx, dword [esp + 0x74]
mov edx, eax
cmp ecx, 1
jne 0x10081e8b
mov ecx, edi
call fcn.1006c260
jmp 0x10081ea9
push ecx
mov ecx, edi
call fcn.100695a0
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, dword [edi + 0x1c]
jle 0x10081ea9
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x20], eax
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x100811e0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10081efd
mov edx, eax
mov ecx, esi
call fcn.1004f960
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x10081efd
mov eax, dword [esp + 0x70]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10081f3d
mov edx, eax
mov ecx, esi
call fcn.1004f960
mov ecx, dword [esp + 0x88]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x10081f22
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x10081f31
mov eax, 0x10142c24
jmp 0x10081f3a
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret