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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], 0
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov byte [esp + 0x3e], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], esi
test esi, esi
jne 0x4cda7c
cmp dword [edi + 0x74], esi
jne 0x4cda6d
test byte [eax + 0x4c], 8
jne 0x4cda6d
mov byte [edi + 0x17], 1
call fcn.0049ca60
mov edx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x48], esi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x30], eax
jne 0x4cda9c
mov dword [esp + 0x34], 0
mov dword [esp + 0x54], 1
jmp 0x4cdac7
mov ecx, dword [edx + 8]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4cdabf
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4cdab7
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4cdaa7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
movzx ecx, word [ecx + 0x32]
mov dword [esp + 0x54], ecx
xor edx, edx
mov dword [esp + 0x2c], edx
test eax, eax
jle 0x4cdcce
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x20], ecx
nop
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x4cdcb2
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4cdafd
cmp dword [eax + edx*4], 0
jl 0x4cdcb2
mov eax, dword [edi + 4]
add ecx, eax
mov al, byte [ecx + 0xc]
movzx edi, al
mov dword [esp + 0x28], edi
test al, al
je 0x4cdcae
mov ah, byte [ebp + 0x20]
cmp ah, 0xb
jne 0x4cdb27
cmp al, ah
jne 0x4cdb27
mov edi, 2
jmp 0x4cdb43
cmp ah, 0xb
movzx edi, ah
cmove edi, dword [esp + 0x28]
cmp edi, 5
jne 0x4cdb43
cmp dword [ecx + 4], 0
mov eax, 2
cmove edi, eax
lea eax, [edi - 1]
mov dword [esp + 0x18], 0
cmp eax, 4
ja case.0x4cdb57.4
jmp dword [eax*4 + 0x4cf0d4]
mov eax, dword [esp + 0x14]
mov ecx, esi
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
mov edx, 0x33
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
push eax
push edi
mov dword [esp + 0x20], eax
call fcn.0049ce10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push edi
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + edx + 4]
call fcn.004b7190
add esp, 0xc
mov edx, 0x33
mov ecx, esi
push dword [esp + 0x18]
push edi
call fcn.0049ce10
add esp, 8
mov edi, 2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push dword [ecx + eax]
push dword [edx]
push str._s._s
push dword [esp + 0x5c]
call fcn.00480280
mov edx, dword [ebp + 0x14]
add esp, 0x10
mov ecx, dword [esi + 0x6c]
inc edx
add edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x70], ecx
jg 0x4cdc12
push edx
push edi
push 0x513
mov edx, 0x44
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cdc41
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
cmp byte [ecx + 0x51], 0
je 0x4cdc5d
push edx
mov edx, 0xfffffff9
call fcn.0049d830
add esp, 4
jmp 0x4cdc6f
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4cdc86
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4cdcaa
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cdddb
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
add dword [esp + 0x20], 0x10
inc edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x30]
jl 0x4cdae0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x4cdf6c
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x4cdf6c
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov al, byte [ebp + 0x20]
movzx edi, al
cmp al, 0xb
jne 0x4cdd0d
mov edi, 2
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [ecx], edx
jle 0x4cdf61
lea eax, [ecx + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4cdd92
mov dword [esp + 0x98], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x84], 0x4cd9c0
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x4cdd7b
mov edx, ecx
lea ecx, [esp + 0x80]
call fcn.004ae8d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp byte [ebp + 0x1c], 0
mov al, byte [esp + 0x94]
jne 0x4cdd8a
and al, 0xfd
test al, al
je 0x4cdf45
mov edx, dword [esp + 0x14]
push 0x10
dec dword [edx + 0x38]
mov eax, dword [edx + 0x38]
push eax
push ecx
push edx
mov dword [esp + 0x38], eax
call fcn.004b7560
add esp, 0x10
cmp edi, 4
jne 0x4cde7f
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4cde48
push 0
push dword [ebp + 0x24]
lea edx, [edi + 7]
mov ecx, esi
push 0
call fcn.0049cca0
add esp, 0xc
jmp 0x4cdf1a
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4cdcaa
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add edi, edx
cmp dword [esi + 0x70], ecx
jg 0x4cde11
push 0
push dword [ebp + 0x24]
mov edx, 0x32
mov ecx, esi
push edi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cdcaa
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4cdcae
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 0x4cdf1a
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x4cde97
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
cmp edi, 5
mov eax, 2
cmove edi, eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4cdecf
cmp dword [ecx + 0x74], eax
jne 0x4cdec2
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4cdec2
mov byte [ecx + 0x17], 1
call fcn.0049ca60
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp edi, 2
jne 0x4cdee0
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x18]
mov edx, 0x45
push 0
push dword [esp + 0x34]
push 0
push edi
push 0x113
call fcn.0049d0a0
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jle 0x4cdf1a
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cdf38
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4cdf41
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc edx
mov eax, dword [esp + 0x1c]
add eax, 0x18
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
cmp edx, dword [ecx]
jl 0x4cdd22
mov edi, dword [esp + 0x14]
mov dword [edi + 0x34], 0
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4cdfea
cmp dword [eax], 0
jne 0x4cdf85
mov byte [ebp + 0x20], 4
mov dword [ebp + 0x30], 0
jmp 0x4cdfea
mov eax, dword [eax + 0x10]
mov dword [esp + 0x58], eax
test eax, eax
je 0x4cdfea
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x5c], edx
cmp dword [esi + 0x70], edx
jg 0x4cdfb7
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4cdfea
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 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
mov dword [esp + 0x78], 0x35
je 0x4ce38b
cmp dword [esp + 0x34], 0
jne 0x4ce38b
mov ecx, dword [esp + 0x10]
dec dword [edi + 0x38]
cmp byte [ebp + 0x20], 0xb
mov edx, dword [edi + 0x38]
movzx eax, byte [ecx + 0x30]
mov dword [esp + 0x1c], edx
je 0x4ce025
movzx eax, byte [ebp + 0x20]
jmp 0x4ce030
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov edi, dword [ebp + 0x30]
mov dword [esp + 0x18], eax
test edi, edi
je 0x4ce056
cmp dword [edi + 0x10], 0
jne 0x4ce056
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x18], eax
jmp 0x4ce079
cmp eax, 5
jne 0x4ce079
cmp byte [ebp + 0x20], al
je 0x4ce079
cmp dword [ecx + 8], 0
je 0x4ce079
lea edx, [eax + 6]
mov ecx, esi
call fcn.0049cd50
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4ce0e6
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce0a2
push eax
push edx
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, esi
call fcn.0049cca0
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x4ce0cf
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4ce0e6
lea ecx, [eax + eax*4]
mov edi, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], di
mov ecx, dword [esi + 0x6c]
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x4ce107
push dword [ebp + 0x14]
mov ecx, esi
push edx
push edi
mov edx, 0x1f
call fcn.0049cca0
add esp, 0xc
jmp 0x4ce131
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x18]
lea eax, [edi - 1]
cmp eax, 5
ja case.default.0x4ce141
jmp dword [eax*4 + 0x4cf0e8]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, 0
je 0x4ce1ba
mov eax, dword [edi]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, ecx
je 0x4ce18e
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004df460
mov dword [esp + 0x18], eax
xor edx, edx
jmp 0x4ce190
xor eax, eax
mov ecx, eax
test eax, eax
je 0x4ce1a9
cmp byte [ecx + 8], 0x79
jne 0x4ce1a2
movzx eax, byte [ecx + 9]
or edx, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4ce196
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4ce208
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0
push 0
call fcn.004cb550
add esp, 8
test eax, eax
jne 0x4ce208
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], eax
je 0x4ce23b
mov eax, dword [edi + 0x74]
mov ecx, edi
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, edi
call fcn.004c5cc0
add esp, 0x10
mov dword [esp + 0x64], 1
jmp 0x4ce2d1
mov eax, dword [edi + 0x74]
mov ecx, edi
mov edx, dword [esp + 0x10]
test eax, eax
push 0xffffffffffffffff
push 1
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, edi
push dword [esp + 0x38]
call fcn.004c58c0
add esp, 0x24
mov dword [esp + 0x64], 1
jmp 0x4ce2d1
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x18]
call fcn.004e34c0
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.0049ce80
jmp 0x4ce2d1
mov edi, 2
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x4ce2a5
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
push dword [edx]
push str._s._s
push dword [ecx]
call fcn.00480280
add esp, 0x10
mov edx, 0x613
jmp 0x4ce2bf
push dword [edx]
mov ecx, dword [esp + 0x18]
push str._s.rowid
push dword [ecx]
call fcn.00480280
add esp, 0xc
mov edx, 0xa13
mov ecx, dword [esp + 0x14]
push 2
push 0xfffffffffffffff9
push eax
push edi
call fcn.004c3860
add esp, 0x10
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce2ef
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4ce2f8
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
cmp dword [esp + 0x60], 0
je 0x4ce38b
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x6c], ecx
cmp dword [esi + 0x70], ecx
jg 0x4ce32a
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
mov dword [esp + 0x6c], eax
jmp 0x4ce35d
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 [esi]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 0x6c]
dec ecx
cmp byte [eax + 0x51], 0
je 0x4ce374
mov eax, 0x648df0
jmp 0x4ce389
test ecx, ecx
mov eax, edx
cmovns eax, dword [esp + 0x60]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4cefb8
mov edi, dword [ebp + 8]
cmp dword [edi + ecx*4], 0
mov edi, dword [esp + 0x14]
je 0x4cef9b
cmp dword [esp + 0x58], eax
jne 0x4ce462
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x6c]
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], ecx
cmp dword [esi + 0x70], ecx
jg 0x4ce3ef
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x4ce422
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4ce43f
mov eax, 0x648de8
mov dword [eax + 8], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
jmp 0x4ce46c
mov ecx, dword [esp + 0x5c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
mov eax, dword [esp + 0x24]
jmp 0x4ce46c
dec dword [edi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x40], ecx
cmp byte [esp + 0x3e], 0
jne 0x4ce493
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4ce47f
cmp ecx, eax
jne 0x4ce493
mov eax, dword [ebp + 0x14]
mov ecx, esi
inc eax
push eax
call fcn.004cc1e0
add esp, 4
mov byte [esp + 0x3e], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
cmp dword [eax + 0x24], 0
je 0x4ce56b
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce4c9
push 0
push edx
push 0
mov edx, 0x49
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4ce4fc
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
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 [edi + 0x34], eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x24]
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test edx, edx
je 0x4ce52b
push 0
push 0
mov ecx, eax
call fcn.004b2380
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x18]
jmp 0x4ce52d
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x4ce54b
mov ecx, dword [esp + 0x14]
push 0x10
push dword [esp + 0x44]
push edi
push ecx
call fcn.004b7920
mov eax, dword [esp + 0x28]
add esp, 0x10
test edi, edi
je 0x4ce558
mov edx, edi
mov ecx, eax
call fcn.004b20e0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x34], 0
mov edx, dword [ebp + 8]
movzx eax, word [eax + 0x34]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov edx, dword [edx + ecx*4]
lea ecx, [edx + 1]
mov dword [esp + 0x2c], ecx
mov ecx, eax
cmp word [esp + 0x28], ax
jae 0x4ce6da
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov edx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x4ce5b4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x4ce633
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + ecx + 4]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
test edx, edx
je 0x4ce5f7
push 0
push 0
mov ecx, eax
call fcn.004b2380
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x30]
jmp 0x4ce5f9
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x4ce616
mov ecx, dword [esp + 0x20]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004b7190
mov eax, dword [esp + 0x34]
add esp, 4
test edi, edi
je 0x4ce623
mov edx, edi
mov ecx, eax
call fcn.004b20e0
mov edi, dword [esp + 0x14]
mov dword [edi + 0x34], 0
jmp 0x4ce6ae
cmp edx, 0xffffffff
je 0x4ce64c
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4ce64c
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x4ce64f
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
sar edx, 0x1f
and edx, 1
add edx, 0x4f
cmp dword [esi + 0x70], ecx
jg 0x4ce674
mov ecx, dword [esp + 0x20]
push 0
push ecx
push edi
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4ce6aa
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
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 + 0x20]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add dword [esp + 0x1c], 0x18
inc edx
inc dword [esp + 0x20]
movzx ecx, word [eax + 0x34]
mov dword [esp + 0x18], edx
cmp edx, ecx
jl 0x4ce5b0
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
movzx edi, cx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce6fc
push edx
push edi
push dword [esp + 0x34]
mov edx, 0x5c
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4ce72b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x5c
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 + 0x24]
mov edx, dword [esp + 0x34]
je 0x4ce772
cmp edx, ecx
jne 0x4ce772
cmp byte [ebp + 0x1c], 0
jne 0x4ce772
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce764
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4cef97
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4cef97
movzx eax, byte [ecx + 0x36]
test eax, eax
jne 0x4ce79b
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce764
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4cef97
cmp byte [ebp + 0x20], 0xb
je 0x4ce7a7
movzx eax, byte [ebp + 0x20]
jmp 0x4ce7b2
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x58], ecx
jne 0x4ce7d2
mov edi, dword [ebp + 0x30]
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x38], 0
jne 0x4ce8a8
cmp dword [ecx + 0x14], 0
jne 0x4ce8a8
cmp edx, ecx
jne 0x4ce8a8
cmp eax, 5
jne 0x4ce8a8
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x70], eax
je 0x4ce84f
mov ecx, dword [esp + 0x14]
xor edx, edx
xor edi, edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4ce82b
mov edx, dword [esp + 0x10]
call fcn.004df460
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4ce844
cmp byte [ecx + 8], 0x79
jne 0x4ce83d
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4ce831
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x4ce8a8
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x70], eax
je 0x4ce883
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x4ce8a8
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.00482640
add esp, 4
cmp dword [eax + 8], 0
jne 0x4ce8a8
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ce764
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4cef97
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x28], edx
movzx edi, word [eax + 0x32]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x70], edx
jg 0x4ce8e3
push dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov edx, 0x1b
push dword [esp + 0x44]
add eax, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.0049cca0
add esp, 0xc
mov edx, eax
jmp 0x4ce925
mov edi, dword [esp + 0x38]
lea eax, [edx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x40]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x4ce93c
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x34]
jne 0x4ce950
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x44], edi
jmp 0x4ce9b6
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
cmp eax, 1
jne 0x4ce985
mov al, byte [ecx + 0x13]
test al, al
jne 0x4ce970
inc dword [ecx + 0x2c]
mov edi, dword [ecx + 0x2c]
mov dword [esp + 0x44], edi
jmp 0x4ce9b6
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edi, dword [ecx + eax*4 + 0x94]
mov dword [esp + 0x44], edi
jmp 0x4ce9b6
mov edx, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x20]
mov dword [esp + 0x44], edi
cmp eax, edx
jg 0x4ce9a1
add eax, edi
sub edx, dword [esp + 0x54]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], edx
jmp 0x4ce9b2
mov eax, dword [ecx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x54]
mov dword [esp + 0x44], edi
mov dword [ecx + 0x2c], eax
mov edx, dword [esp + 0x24]
cmp dword [ebp + 0x18], 0
jne 0x4ce9c7
cmp dword [esp + 0x18], 5
jne 0x4ced22
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 0x20
jne 0x4ceaab
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ce9f9
mov eax, dword [esp + 0x38]
mov edx, 0x87
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push edi
push eax
call fcn.0049cca0
add esp, 0xc
jmp 0x4cea33
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x44]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x87
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 eax, dword [ebp + 0x18]
test eax, eax
je 0x4ced22
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4cea5d
push eax
push dword [esp + 0x44]
mov edx, 0x35
mov ecx, esi
push edi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cea8b
mov edx, dword [esp + 0x40]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4ced22
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4ced22
mov edi, dword [esp + 0x34]
cmp edx, edi
je 0x4ceb96
mov eax, dword [esp + 0x34]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x30], edi
cmp cx, word [eax + 0x32]
jae 0x4ceb92
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x4ceafe
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
cmp di, word [eax]
je 0x4ceb2f
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4ceaf1
or eax, 0xffffffff
mov ecx, dword [esi + 0x6c]
movsx edx, ax
mov dword [esp + 0x28], edx
cmp dword [esi + 0x70], ecx
jg 0x4ceb34
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov eax, dword [esp + 0x38]
add eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov edx, 0x5a
call fcn.0049cca0
add esp, 0xc
jmp 0x4ceb6e
movzx eax, cx
jmp 0x4ceb01
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x5a
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 + 0x30]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x1c], edi
mov edi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x30], ecx
cmp ecx, eax
jl 0x4cead5
mov edi, dword [esp + 0x34]
cmp dword [ebp + 0x18], 0
je 0x4ced22
movzx ecx, word [edi + 0x32]
mov eax, dword [esi + 0x6c]
add eax, ecx
mov dword [esp + 0x30], 0x34
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x44]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x4ced22
nop word [eax + eax]
mov eax, dword [edi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ecx, dword [eax]
mov al, byte [ecx + 0x4e]
mov byte [esp + 0x3f], al
mov al, byte [ecx + 0xa5]
mov byte [esp + 0x4f], al
movzx eax, al
push eax
push edx
mov dl, byte [esp + 0x47]
call fcn.004c44a0
add esp, 8
mov edi, eax
cmp byte [esp + 0x4f], 0
jne 0x4cec3c
test edi, edi
je 0x4cec25
cmp dword [edi + 0xc], 0
jne 0x4cec3c
push dword [esp + 0x28]
mov dl, byte [esp + 0x43]
mov ecx, dword [esp + 0x18]
push edi
call fcn.004c4260
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0x32]
mov eax, dword [esp + 0x30]
dec ecx
cmp dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x18]
cmove eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
cmovne eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], eax
add ecx, edx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], eax
cmp dword [esi + 0x70], edx
jg 0x4ceca8
mov edx, dword [esp + 0x30]
push eax
push dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
mov edx, eax
jmp 0x4cece5
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x30]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
push 0xfffffffffffffffe
push edi
mov ecx, esi
call fcn.0049da90
mov eax, dword [esi + 0x6c]
add esp, 8
test eax, eax
jle 0x4ced09
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x4cebe0
mov edi, dword [esp + 0x18]
lea eax, [edi - 1]
cmp eax, 5
ja case.0x4ced32.5
jmp dword [eax*4 + 0x4cf100]
push dword [esp + 0x24]
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004c38e0
add esp, 4
jmp 0x4ceea0
mov eax, dword [esp + 0x38]
add eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [ebp + 0x30]
push eax
push dword [esp + 0x28]
push dword [esp + 0x18]
call fcn.004e34c0
add esp, 0xc
jmp 0x4ced79
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4ced9c
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.0049cca0
add esp, 0xc
jmp 0x4ceea0
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 0x4ceea0
mov eax, dword [esp + 0x50]
xor edi, edi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, edi
je 0x4cee34
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4cee04
mov edx, dword [esp + 0x10]
call fcn.004df460
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4cee23
nop word [eax + eax]
cmp byte [ecx + 8], 0x79
jne 0x4cee1c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4cee10
xor eax, eax
test edi, edi
cmovne eax, edx
mov dword [esp + 0x28], eax
mov edi, eax
test eax, eax
jne 0x4cee4c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
call fcn.004cb550
add esp, 8
test eax, eax
je 0x4cee5c
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 + 0x38]
add eax, edx
push eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x28], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x64]
push dword [esp + 0x58]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.004c58c0
add esp, 0x24
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x24]
jne 0x4cef34
mov edx, dword [esp + 0x5c]
mov ecx, dword [esi + 0x6c]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x4ceed1
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cef04
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4cef19
mov eax, 0x648de8
mov dword [eax + 8], edx
jmp 0x4cef5b
mov ecx, dword [esp + 0x68]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4cef5b
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cef52
push edx
mov edx, esi
call fcn.0049d2f0
add esp, 4
jmp 0x4cef5b
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x2c]
je 0x4cef97
mov eax, dword [esp + 0x54]
cmp eax, 1
jne 0x4cef8c
test ecx, ecx
je 0x4cef97
mov al, byte [edi + 0x13]
mov edx, dword [esp + 0x10]
cmp al, 8
jae 0x4cef9b
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
jmp 0x4cef9b
cmp eax, dword [edi + 0x1c]
jle 0x4cef97
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
inc dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov edi, dword [edi + 0x14]
mov eax, edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4ce3a4
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4cf03b
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4cefe2
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cf011
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 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 [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4cf023
mov eax, 0x648de8
jmp 0x4cf038
mov ecx, dword [esp + 0x6c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 0x20
jne 0x4cf0c5
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 8]
mov edi, dword [edx + ecx*4]
movsx edx, word [eax + 0x2a]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
inc eax
mov dword [esp + 0x70], edi
cmp dword [esi + 0x70], ecx
jg 0x4cf07b
push edi
push edx
push eax
mov edx, 0x5c
mov ecx, esi
call fcn.0049cca0
add esp, 0xc
jmp 0x4cf0ae
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x70]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x3e], 0
jne 0x4cf0c5
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0
call fcn.004cc1e0
add esp, 4
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret