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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x58], ecx
xor ecx, ecx
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov byte [esp + 0x4b], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], edi
test edi, edi
jne 0x4cdacd
cmp dword [eax + 0x74], edi
jne 0x4cdabc
test byte [ecx + 0x4c], 8
jne 0x4cdabc
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.00499460
mov edx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x50], edi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x54], eax
jne 0x4cdaed
mov dword [esp + 0x40], 0
mov dword [esp + 0x64], 1
jmp 0x4cdb18
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4cdb10
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4cdb08
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4cdaf8
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
movzx ecx, word [ecx + 0x32]
mov dword [esp + 0x64], ecx
xor edx, edx
mov dword [esp + 0x20], edx
test eax, eax
jle 0x4cdd12
xor ecx, ecx
mov dword [esp + 0x30], ecx
nop dword [eax]
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4cdcfa
test esi, esi
je 0x4cdb4e
cmp dword [esi + edx*4], 0
jl 0x4cdcfa
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
movzx esi, byte [eax + ecx + 0xc]
test esi, esi
je 0x4cdcf6
mov dl, byte [ebp + 0x20]
cmp dl, 0xb
je 0x4cdb9e
movzx esi, dl
cmp esi, 5
jne 0x4cdb7f
cmp dword [eax + ecx + 4], 0
mov eax, 2
cmove esi, eax
mov edx, dword [esp + 0x20]
lea eax, [esi - 1]
mov dword [esp + 0x28], 0
cmp eax, 4
ja case.0x4cdb97.4
jmp dword [eax*4 + 0x4cf3a4]
cmp esi, 0xb
jne 0x4cdb6d
mov esi, 2
jmp 0x4cdb7f
mov eax, dword [esp + 0x14]
inc edx
mov esi, dword [ebp + 0x14]
mov ecx, edi
add esi, edx
mov edx, 0x33
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
push eax
push esi
mov dword [esp + 0x30], eax
call fcn.004998d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + eax + 4]
call fcn.004b5ff0
add esp, 0xc
mov edx, 0x33
mov ecx, edi
push dword [esp + 0x28]
push esi
call fcn.004998d0
add esp, 8
mov esi, 2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
push dword [eax + ecx]
push dword [edx]
push 0x708a04
push dword [esp + 0x6c]
call fcn.0047a2b0
mov edx, dword [ebp + 0x14]
add esp, 0x10
mov ecx, dword [edi + 0x6c]
inc edx
add edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp dword [edi + 0x70], ecx
jg 0x4cdc5e
push edx
push esi
push 0x513
mov edx, 0x44
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cdc8d
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
cmp byte [ecx + 0x51], 0
je 0x4cdca9
push edx
mov edx, 0xfffffff9
call fcn.0049a470
add esp, 4
jmp 0x4cdcbb
mov eax, dword [edi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4cdcd2
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4cdcf2
mov ecx, dword [edi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cdd56
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
add dword [esp + 0x30], 0x10
inc edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
cmp edx, dword [esp + 0x54]
jl 0x4cdb30
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x28], edx
test edx, edx
je 0x4ce015
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x4ce015
mov eax, dword [ebp + 0x14]
not eax
mov dword [esi + 0x34], eax
mov al, byte [ebp + 0x20]
cmp al, 0xb
je 0x4cddc0
movzx eax, al
mov dword [esp + 0x30], eax
jmp 0x4cddc8
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4cdcf2
mov esi, dword [ebp + 0x14]
mov ecx, dword [edi + 0x6c]
inc esi
add esi, edx
cmp dword [edi + 0x70], ecx
jg 0x4cdd89
push 0
push dword [ebp + 0x24]
mov edx, 0x32
mov ecx, edi
push esi
call fcn.00499760
add esp, 0xc
jmp 0x4cdcf2
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cdcf6
mov dword [esp + 0x30], 2
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edx], ecx
jle 0x4ce00e
lea eax, [edx + 8]
mov dword [esp + 0x44], eax
nop dword [eax]
cmp dword [esp + 0x34], 0
mov esi, dword [eax - 4]
je 0x4cde5d
mov edi, dword [esp + 0x34]
xorps xmm0, xmm0
xor al, al
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x50]
mov byte [esp + 0xa4], al
mov dword [esp + 0x94], 0x4cd9f0
test esi, esi
je 0x4cde4d
mov edx, esi
lea ecx, [esp + 0x90]
call fcn.004aca70
mov al, byte [esp + 0xa4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp byte [ebp + 0x1c], 0
jne 0x4cde55
and al, 0xfd
test al, al
je 0x4cdff2
mov ecx, dword [esp + 0x14]
push 0x10
dec dword [ecx + 0x38]
mov eax, dword [ecx + 0x38]
push eax
push esi
push ecx
mov dword [esp + 0x78], eax
call fcn.004b6520
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp edx, 4
jne 0x4cdedb
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cdea4
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.00499760
add esp, 0xc
jmp 0x4cdfc3
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 0x4cdfc3
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4cdef3
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
cmp edx, 5
mov eax, 2
cmove edx, eax
mov dword [esp + 0x30], edx
mov esi, dword [ecx + 8]
test esi, esi
jne 0x4cdf2d
cmp dword [ecx + 0x74], esi
jne 0x4cdf1e
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4cdf1e
mov byte [ecx + 0x17], 1
call fcn.00499460
mov edx, dword [esp + 0x30]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp edx, 2
jne 0x4cdf3e
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x70], ecx
jg 0x4cdf63
push 0
push edx
push 0x113
mov edx, 0x45
mov ecx, esi
call fcn.00499760
add esp, 0xc
jmp 0x4cdf9a
mov edi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0x113
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x4c]
push 0
push dword [esp + 0x3c]
mov edx, eax
mov ecx, esi
call fcn.0049a6e0
mov eax, dword [esi + 0x6c]
add esp, 8
test eax, eax
jle 0x4cdfc3
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x68]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cdfe1
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
jmp 0x4cdfea
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
inc ecx
add eax, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [edx]
jl 0x4cdde0
mov esi, dword [esp + 0x14]
mov dword [esi + 0x34], 0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4ce099
cmp dword [eax], 0
jne 0x4ce034
mov byte [ebp + 0x20], 4
mov dword [esp + 0x5c], 0
jmp 0x4ce099
mov eax, dword [eax + 0x10]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x4ce099
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x70], edx
cmp dword [edi + 0x70], edx
jg 0x4ce066
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499760
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4ce099
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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
cmp byte [ebp + 0x1c], 0
je 0x4ce4e0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x4ce4e0
mov ecx, dword [esp + 0x18]
dec dword [esi + 0x38]
cmp byte [ebp + 0x20], 0xb
mov edx, dword [esi + 0x38]
movzx eax, byte [ecx + 0x30]
mov dword [esp + 0x30], edx
je 0x4ce0cd
movzx eax, byte [ebp + 0x20]
jmp 0x4ce0d8
cmp eax, 0xb
mov esi, 2
cmove eax, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
test esi, esi
je 0x4ce0ff
cmp dword [esi + 0x10], 0
jne 0x4ce0ff
xor eax, eax
cmp dword [esi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x28], eax
jmp 0x4ce122
cmp eax, 5
jne 0x4ce122
cmp byte [ebp + 0x20], al
je 0x4ce122
cmp dword [ecx + 8], 0
je 0x4ce122
lea edx, [eax + 6]
mov ecx, edi
call fcn.00499810
mov edx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4ce18f
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4ce14b
push eax
push edx
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, edi
call fcn.00499760
mov edx, dword [esp + 0x3c]
add esp, 0xc
jmp 0x4ce178
mov esi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4ce18f
lea ecx, [eax + eax*4]
mov esi, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], si
mov ecx, dword [edi + 0x6c]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x70], ecx
jg 0x4ce1b0
push dword [ebp + 0x14]
mov ecx, edi
push edx
push esi
mov edx, 0x1f
call fcn.00499760
add esp, 0xc
jmp 0x4ce1da
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x28]
lea eax, [esi - 1]
cmp eax, 5
ja case.default.0x4ce1ea
jmp dword [eax*4 + 0x4cf3b8]
mov eax, dword [esp + 0x60]
xor esi, esi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, esi
je 0x4ce21d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push esi
push 0x7c
call fcn.004e21e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ce256
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4ce29b
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0047cae0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4ce256
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x4ce297
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x74]
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 esi
call fcn.004c5c30
add esp, 0x24
mov dword [esp + 0x74], 1
jmp 0x4ce424
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp dword [esi + 8], 0
je 0x4ce2c9
mov eax, dword [ecx + 0x74]
mov edx, esi
test eax, eax
push 0xffffffffffffffff
cmovne ecx, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x24]
call fcn.004c6030
add esp, 0x10
mov dword [esp + 0x74], 1
jmp 0x4ce424
push dword [ebp + 0xc]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x20]
call fcn.004e5810
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.00499940
jmp 0x4ce424
mov esi, 2
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x4ce33a
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 0x7084dc
push dword [eax]
call fcn.0047a2b0
add esp, 0x10
mov dword [esp + 0x28], 0x613
jmp 0x4ce357
push dword [edx]
mov eax, dword [esp + 0x18]
push str._s.rowid
push dword [eax]
call fcn.0047a2b0
add esp, 0xc
mov dword [esp + 0x28], 0xa13
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
test edx, edx
jne 0x4ce38a
cmp dword [ecx + 0x74], edx
jne 0x4ce37b
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4ce37b
mov byte [ecx + 0x17], 1
call fcn.00499460
mov ecx, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x44], edx
cmp esi, 2
jne 0x4ce39b
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x4c], ecx
cmp dword [edx + 0x70], ecx
jg 0x4ce3c4
mov edx, dword [esp + 0x28]
push 0
push esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
push edx
mov edx, 0x45
call fcn.00499760
add esp, 0xc
jmp 0x4ce3fb
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x4c]
push 0xfffffffffffffff9
push dword [esp + 0x3c]
mov edx, eax
mov ecx, esi
call fcn.0049a6e0
mov eax, dword [esi + 0x6c]
add esp, 8
test eax, eax
jle 0x4ce424
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce442
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
jmp 0x4ce44b
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp dword [esp + 0x78], 0
je 0x4ce4e0
mov esi, dword [edi + 0x6c]
mov dword [esp + 0x80], esi
cmp dword [edi + 0x70], esi
jg 0x4ce483
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499760
add esp, 0xc
mov dword [esp + 0x80], eax
jmp 0x4ce4b6
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 ecx, dword [esp + 0x78]
sub ecx, 1
mov edx, dword [edi + 0x6c]
jns 0x4ce4c5
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4ce4d4
mov eax, 0x716eec
jmp 0x4ce4dd
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4ce984
mov edx, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x4ce970
mov edx, dword [esp + 0x6c]
cmp edx, eax
jne 0x4ce5c3
mov eax, dword [esp + 0x70]
mov esi, dword [edi + 0x6c]
inc eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x7c], esi
cmp dword [edi + 0x70], esi
jg 0x4ce547
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499760
add esp, 0xc
mov dword [esp + 0x7c], eax
jmp 0x4ce57a
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 [esp + 0x70]
mov ecx, eax
mov edx, dword [edi + 0x6c]
test eax, eax
jns 0x4ce58a
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4ce5a8
mov esi, dword [esp + 0x14]
mov eax, 0x716eec
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
jmp 0x4ce5d1
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x6c]
lea eax, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
jmp 0x4ce5d1
mov esi, dword [esp + 0x14]
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x34], ecx
cmp byte [esp + 0x4b], 0
jne 0x4ce5f8
test edx, edx
je 0x4ce5e0
cmp edx, eax
jne 0x4ce5f8
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov edx, dword [esp + 0x18]
inc eax
push eax
call fcn.004cc120
add esp, 4
mov byte [esp + 0x4b], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp dword [eax + 0x24], 0
je 0x4ce6d1
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4ce62f
push 0
push edx
push 0
mov edx, 0x49
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4ce662
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x49
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 eax, dword [ebp + 0x14]
not eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov dword [esp + 0x38], eax
test edx, edx
je 0x4ce691
push 0
push 0
mov ecx, eax
call fcn.004b0600
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x38]
jmp 0x4ce693
xor esi, esi
cmp byte [eax + 0x51], 0
jne 0x4ce6b1
mov eax, dword [esp + 0x14]
push 0x10
push dword [esp + 0x38]
push esi
push eax
call fcn.004b68d0
mov eax, dword [esp + 0x48]
add esp, 0x10
test esi, esi
je 0x4ce6be
mov edx, esi
mov ecx, eax
call fcn.004b03b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x34], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
xor esi, esi
mov edx, dword [edx + ecx*4]
xor ecx, ecx
inc edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x30], edx
cmp si, word [eax + 0x34]
jae 0x4ce8c7
mov esi, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
nop dword [eax]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
cmp edx, 0xfffffffe
jne 0x4ce830
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
not eax
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x4ce747
push 0
push 0
call fcn.004b0600
mov ecx, dword [esp + 0x34]
add esp, 8
jmp 0x4ce749
xor eax, eax
cmp byte [ecx + 0x51], 0
mov dword [esp + 0x38], eax
jne 0x4ce794
test eax, eax
je 0x4ce7e2
cmp byte [eax], 0xab
jne 0x4ce7e2
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce7b1
push 0
push dword [esp + 0x24]
push edx
mov edx, 0x4e
mov ecx, esi
call fcn.00499760
add esp, 0xc
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4ce7a1
call fcn.004b03b0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 0
jmp 0x4ce8a0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4e
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4ce790
mov ecx, dword [esp + 0x14]
mov edx, eax
push esi
call fcn.004b4cf0
mov edx, eax
add esp, 4
cmp edx, esi
je 0x4ce790
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
test esi, esi
je 0x4ce78c
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce81b
push 0
push dword [esp + 0x24]
push edx
mov edx, 0x4f
jmp 0x4ce782
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4f
jmp 0x4ce7c4
cmp edx, 0xffffffff
je 0x4ce849
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4ce849
mov esi, dword [ebp + 0x14]
inc esi
add esi, edx
jmp 0x4ce84c
mov esi, dword [ebp + 0x14]
mov ecx, dword [edi + 0x6c]
sar edx, 0x1f
and edx, 1
add edx, 0x4f
cmp dword [edi + 0x70], ecx
jg 0x4ce874
push 0
push dword [esp + 0x24]
mov ecx, edi
push esi
call fcn.00499760
mov esi, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4ce8a0
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov byte [eax + ecx*4], dl
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 8], esi
mov word [eax + 2], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x1c]
inc esi
mov ecx, dword [esp + 0x54]
add dword [esp + 0x28], 0x18
inc ecx
mov dword [esp + 0x54], ecx
movzx eax, word [eax + 0x34]
cmp ecx, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
jl 0x4ce700
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
movzx esi, word [eax + 0x34]
mov edx, dword [edx + ecx*4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4ce8f5
push edx
push esi
push dword [esp + 0x38]
mov edx, 0x5c
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4ce924
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], esi
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 edx, dword [esp + 0x40]
je 0x4ce9c0
cmp edx, ecx
jne 0x4ce9c0
cmp byte [ebp + 0x1c], 0
jne 0x4ce9c0
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce9b5
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4ce501
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4cf2f2
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cf293
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cf2c6
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4ce960
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x4ce944
cmp byte [ebp + 0x20], 0xb
je 0x4ce9d8
movzx eax, byte [ebp + 0x20]
jmp 0x4ce9e3
cmp eax, 0xb
mov esi, 2
cmove eax, esi
mov dword [esp + 0x28], eax
cmp dword [esp + 0x6c], ecx
jne 0x4cea04
mov esi, dword [esp + 0x5c]
xor eax, eax
cmp dword [esi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x24], 0
jne 0x4ceacd
cmp dword [ecx + 0x14], 0
jne 0x4ceacd
cmp edx, ecx
jne 0x4ceacd
cmp eax, 5
jne 0x4ceacd
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x88], eax
mov eax, 0
jne 0x4cea48
test eax, eax
je 0x4cea8e
mov ecx, dword [esp + 0x14]
xor edx, edx
xor esi, esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4cea69
mov edx, dword [esp + 0x18]
call fcn.004e1160
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4cea83
nop
cmp byte [ecx + 8], 0x7c
jne 0x4cea7c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4cea70
xor eax, eax
test esi, esi
cmovne eax, edx
test eax, eax
jne 0x4ceacd
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x88], eax
mov eax, 0
jne 0x4ceaac
test eax, eax
je 0x4ceb08
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x10], eax
jne 0x4ceacd
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
add ecx, 0x38
push 0
call fcn.0047cae0
add esp, 4
cmp dword [eax + 8], 0
je 0x4ceb0c
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x4c], edx
movzx esi, word [eax + 0x32]
mov dword [esp + 0x68], esi
cmp dword [edi + 0x70], edx
jg 0x4ceb3b
push dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, 0x1b
push dword [esp + 0x38]
add eax, dword [ebp + 0x10]
mov ecx, edi
push eax
call fcn.00499760
add esp, 0xc
mov edx, eax
jmp 0x4ceb7d
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ceb2d
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
jmp 0x4ce964
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4ce964
mov esi, dword [esp + 0x68]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x24]
add edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4ceb94
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], esi
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x40]
jne 0x4ceba8
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], esi
jmp 0x4cec06
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
cmp eax, 1
jne 0x4cebd5
mov al, byte [edx + 0x13]
test al, al
jne 0x4cebc4
inc dword [edx + 0x2c]
mov esi, dword [edx + 0x2c]
jmp 0x4cebfe
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov esi, dword [edx + eax*4 + 0x94]
jmp 0x4cebfe
mov ecx, dword [edx + 0x1c]
mov esi, dword [edx + 0x20]
mov dword [esp + 0x20], esi
cmp eax, ecx
jg 0x4cebf1
add eax, esi
sub ecx, dword [esp + 0x64]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x4cec02
mov eax, dword [edx + 0x2c]
lea esi, [eax + 1]
add eax, dword [esp + 0x64]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
jne 0x4cec17
cmp dword [esp + 0x28], 5
jne 0x4cefe9
mov eax, dword [esp + 0x18]
test byte [eax + 0x24], 0x20
jne 0x4cecfb
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cec49
mov eax, dword [esp + 0x24]
mov edx, 0x87
add eax, dword [ebp + 0x10]
mov ecx, edi
push 0
push esi
push eax
call fcn.00499760
add esp, 0xc
jmp 0x4cec83
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x20]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4cefe9
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cecad
push eax
push dword [esp + 0x38]
mov edx, 0x35
mov ecx, edi
push esi
call fcn.00499760
add esp, 0xc
jmp 0x4cecdb
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4cefe9
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4cefe9
mov esi, dword [esp + 0x40]
cmp edx, esi
je 0x4cede6
mov ecx, dword [esp + 0x40]
xor esi, esi
xor eax, eax
mov dword [esp + 0x2c], esi
cmp ax, word [ecx + 0x32]
jae 0x4cede2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
jle 0x4ced4e
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
movzx esi, word [eax + esi*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp si, word [eax]
je 0x4ced7f
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4ced41
or eax, 0xffffffff
mov ecx, dword [edi + 0x6c]
movsx edx, ax
mov dword [esp + 0x4c], edx
cmp dword [edi + 0x70], ecx
jg 0x4ced84
mov esi, dword [esp + 0x44]
mov ecx, edi
mov eax, dword [esp + 0x24]
add eax, dword [ebp + 0x10]
push esi
push edx
push eax
mov edx, 0x5a
call fcn.00499760
add esp, 0xc
jmp 0x4cedbe
movzx eax, cx
jmp 0x4ced51
mov esi, dword [esp + 0x24]
lea eax, [ecx + 1]
add esi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x44], esi
mov esi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x4ced25
mov esi, dword [esp + 0x40]
cmp dword [ebp + 0x18], 0
je 0x4cefe9
movzx ecx, word [esi + 0x32]
mov eax, dword [edi + 0x6c]
add eax, ecx
mov dword [esp + 0x54], 0x34
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x20]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
xor edx, edx
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x4cefe9
mov eax, dword [ebp + 0x18]
inc eax
mov dword [esp + 0x68], eax
nop
mov eax, dword [esi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov esi, dword [eax]
mov ch, byte [esi + 0x4e]
mov cl, byte [esi + 0xa5]
mov byte [esp + 0x5b], ch
mov byte [esp + 0x5a], cl
test edx, edx
je 0x4cee7d
movzx eax, cl
mov ecx, esi
push eax
call fcn.004c46d0
mov cl, byte [esp + 0x5e]
add esp, 4
mov edx, dword [esp + 0x88]
mov esi, eax
mov ch, byte [esp + 0x5b]
mov dword [esp + 0x44], eax
jmp 0x4cee84
mov esi, dword [esi + 8]
mov dword [esp + 0x44], esi
test esi, esi
je 0x4cee98
movzx eax, ch
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0xffffffec
mov dword [esp + 0x44], esi
test cl, cl
jne 0x4ceebc
test esi, esi
je 0x4ceea6
cmp dword [esi + 0xc], 0
jne 0x4ceebc
push edx
mov dl, ch
mov ecx, dword [esp + 0x18]
push esi
call fcn.004c45f0
mov esi, eax
add esp, 8
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
movsx eax, word [ecx + edx*2]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x88], eax
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x4ceeef
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], 0x35
mov ecx, dword [esp + 0x68]
mov edx, dword [edi + 0x6c]
add ecx, eax
cmp dword [edi + 0x70], edx
jg 0x4cef1d
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push eax
push dword [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00499760
add esp, 0xc
mov edx, eax
jmp 0x4cef6d
mov esi, dword [esp + 0x44]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x54]
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x4cef85
push esi
mov edx, 0xfffffffe
call fcn.0049a470
add esp, 4
jmp 0x4cefb9
test edx, edx
jns 0x4cef8d
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4cefae
push 0xfffffffffffffffe
push esi
mov edx, eax
mov ecx, edi
call fcn.0049a600
add esp, 8
jmp 0x4cefb9
test esi, esi
je 0x4cefb9
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfe
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4cefd0
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
movzx eax, word [esi + 0x32]
cmp edx, eax
jl 0x4cee30
mov esi, dword [esp + 0x28]
lea eax, [esi - 1]
cmp eax, 5
ja case.0x4ceff9.5
jmp dword [eax*4 + 0x4cf3d0]
push dword [esp + 0x1c]
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004c3900
add esp, 4
jmp 0x4cf183
mov eax, dword [esp + 0x24]
add eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x5c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004e5810
add esp, 0xc
jmp 0x4cf041
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4cf064
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.00499760
add esp, 0xc
jmp 0x4cf183
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 0x4cf183
mov eax, dword [esp + 0x60]
xor esi, esi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, esi
je 0x4cf0f6
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4cf0cc
mov edx, dword [esp + 0x18]
call fcn.004e1160
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4cf0e5
cmp byte [ecx + 8], 0x7c
jne 0x4cf0de
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4cf0d2
xor ecx, ecx
test esi, esi
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
mov esi, ecx
test ecx, ecx
jne 0x4cf12f
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4cf13f
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0047cae0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4cf12f
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x4cf13f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
add eax, edx
push eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x20], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x74]
push dword [esp + 0x34]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.004c5c30
add esp, 0x24
mov dword [esp + 0x74], 1
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x1c]
jne 0x4cf218
mov edx, dword [esp + 0x70]
mov ecx, dword [edi + 0x6c]
inc edx
cmp dword [edi + 0x70], ecx
jg 0x4cf1b4
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cf1e7
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 eax, dword [esp + 0x7c]
mov ecx, eax
mov edx, dword [edi + 0x6c]
test eax, eax
jns 0x4cf1f7
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4cf209
mov eax, 0x716eec
mov dword [eax + 8], edx
jmp 0x4cf23f
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4cf23f
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cf236
push edx
mov edx, edi
call fcn.00499f40
add esp, 4
jmp 0x4cf23f
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x30]
je 0x4ce960
mov eax, dword [esp + 0x64]
cmp eax, 1
jne 0x4cf27f
test ecx, ecx
je 0x4ce960
mov al, byte [esi + 0x13]
mov edx, dword [esp + 0x3c]
cmp al, 8
jae 0x4cf276
movzx eax, al
mov dword [esi + eax*4 + 0x94], ecx
inc byte [esi + 0x13]
mov esi, dword [esp + 0x18]
jmp 0x4ce968
cmp eax, dword [esi + 0x1c]
jle 0x4ce960
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
jmp 0x4ce960
mov esi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
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 + 0x80]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4cf2d7
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4cf2e6
mov eax, 0x716eec
jmp 0x4cf2ef
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
test byte [esi + 0x24], 0x20
jne 0x4cf383
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x88], esi
movsx edx, word [eax + 0x2a]
mov eax, dword [ebp + 0x14]
inc eax
cmp dword [edi + 0x70], ecx
jg 0x4cf336
push esi
push edx
push eax
mov edx, 0x5c
mov ecx, edi
call fcn.00499760
add esp, 0xc
jmp 0x4cf36c
mov esi, dword [esp + 0x88]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [ebp + 0x14]
inc edi
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x4b], 0
jne 0x4cf383
mov edx, dword [esp + 0x18]
mov ecx, edi
push 0
call fcn.004cc120
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret