Function at 0x4ce550
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
push ebx
push esi
mov ebx, ecx
mov esi, 1
push edi
mov edi, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], edi
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x4d0116
cmp byte [eax + 0x1e], 0
jne 0x4d0116
cmp dword [ebx + 0x40], 0
jne 0x4d0116
push 0x2c
lea eax, [esp + 0x98]
push 0
push eax
call fcn.004e1ab0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [eax], 4
ja 0x4ce5ca
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.004aedc0
mov ecx, 0xfffe
mov dword [edi + 0x18], 0
and word [edi + 6], cx
push 0
mov edx, edi
mov ecx, ebx
call fcn.004cded0
mov eax, dword [edi + 0x18]
add esp, 4
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x50], eax
jne 0x4ce84f
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1e], 0
jne 0x4d00c1
movzx eax, word [edi + 6]
mov esi, dword [ebx + 0xc]
shr eax, 2
and eax, 1
mov dword [esp + 0x5c], esi
mov dword [esp + 0x30], eax
test esi, esi
jne 0x4ce633
mov ecx, dword [ebx]
call fcn.004a1540
mov esi, eax
mov dword [esp + 0x5c], esi
mov dword [ebx + 0xc], esi
test esi, esi
je 0x4ce84a
mov edx, dword [edi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x24], ecx
test edx, edx
jne 0x4ce79d
mov eax, dword [esp + 0x50]
jmp 0x4ce650
movsx eax, word [eax]
cmp ecx, eax
jge 0x4ce79d
mov edx, dword [esp + 0x50]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [edx + eax*8]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4ce789
cmp byte [eax + 0x1c], 0
jne 0x4ce789
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov ecx, edi
call fcn.004ad570
mov eax, dword [ebx + 0x208]
mov edx, edi
add eax, dword [esp + 0x44]
mov ecx, ebx
mov dword [ebx + 0x208], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004ccd90
add esp, 0xc
test eax, eax
je 0x4ce6f4
cmp dword [esp + 0x18], 0
je 0x4ce6eb
or word [edi + 6], 4
mov dword [esp + 0x30], 1
or eax, 0xffffffff
mov dword [esp + 0x24], eax
jmp 0x4ce740
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc4]
push eax
mov word [esp + 0xc8], 9
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call fcn.004ce550
mov eax, dword [esp + 0x3c]
add esp, 4
mov byte [eax + 0x1c], 1
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x1e], 0
jne 0x4d00b7
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov ecx, edi
call fcn.004ad570
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x44]
sub dword [ebx + 0x208], eax
mov eax, dword [edi + 8]
cmp byte [ecx], 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
jbe 0x4ce78d
mov eax, dword [edi + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov edx, dword [edi + 0x1c]
inc ecx
mov dword [esp + 0x24], ecx
test edx, edx
je 0x4ce650
mov eax, dword [edi]
movzx ecx, word [edi + 6]
mov dword [esp + 0x74], eax
and ecx, 1
mov eax, dword [edi + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4ce826
cmp dword [edi + 0x24], 0
jne 0x4ce810
xor edx, edx
mov eax, edi
xor ecx, ecx
mov dword [eax + 0x20], edx
inc ecx
mov dword [eax + 0x24], edi
mov edx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4ce7d7
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4ce810
cmp ecx, eax
jle 0x4ce810
push str.too_many_terms_in_compound_SELECT
push ebx
call fcn.004936e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
call fcn.004c9390
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x74]
mov eax, dword [ebp + 8]
cmp dword [ecx], 1
mov al, byte [eax]
jle 0x4ce893
cmp al, 6
je 0x4ce83c
cmp al, 7
jne 0x4ce893
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push ebx
call fcn.004936e0
add esp, 8
mov esi, 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x4d00c8
cmp ecx, dword [edx + 0xf0]
jb 0x4d00c8
cmp ecx, dword [edx + 0xf4]
jae 0x4d00c8
mov eax, dword [edx + 0xec]
mov dword [ecx], eax
dec dword [edx + 0xe4]
mov dword [edx + 0xec], ecx
jmp 0x4d00d5
mov al, byte [edi + 6]
and al, 5
cmp al, 1
jne 0x4ce8c8
mov edx, dword [edi]
mov ecx, dword [esp + 0x1c]
push 0
call fcn.004ae3b0
mov dword [esp + 0x2c], eax
add esp, 4
mov dword [edi + 0x10], eax
mov dword [esp + 0x3c], eax
mov eax, 0xfffe
and word [edi + 6], ax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4ce989
mov edx, eax
mov ecx, ebx
call fcn.004c7c10
mov edx, dword [esp + 0x54]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x7c], eax
lea eax, [ebx + 0x44]
mov dword [esp + 0x60], eax
mov dword [edx + 8], ecx
inc dword [eax]
mov eax, dword [edx]
add eax, 2
mov dword [esp + 0x58], eax
mov eax, dword [edx + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
cmp dword [esi + 0x10], edx
jg 0x4ce92a
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4ce926
mov edx, 1
mov dword [esp + 0x24], edx
jmp 0x4ce96d
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x4c]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [ebx + 0x44]
mov byte [esi + 0x6e], 0
mov dword [esp + 0x60], eax
push 0xfffffffffffffff0
push dword [esp + 0x80]
mov ecx, esi
call fcn.004a1c70
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x40], eax
jmp 0x4ce997
or eax, 0xffffffff
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x44]
mov dword [esp + 0x60], eax
mov ecx, dword [ebp + 8]
cmp byte [ecx], 9
jne 0x4cea03
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x10], eax
jg 0x4ce9cb
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cea03
mov eax, dword [esp + 0x18]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, esi
call fcn.004a1770
push eax
mov edx, edi
mov dword [esp + 0xc4], eax
mov ecx, ebx
call fcn.004c8f60
add esp, 4
cmp dword [esp + 0x20], 0
je 0x4ceac3
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
mov dword [esp + 0x70], eax
inc eax
mov dword [ecx], eax
mov ecx, ebx
mov edx, dword [edi]
call fcn.004c7c10
mov edx, dword [esi + 0xc]
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], edx
cmp dword [esi + 0x10], edx
jg 0x4cea75
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4cea71
push 0xfffffffffffffff0
push dword [esp + 0x5c]
mov edx, 1
mov ecx, esi
call fcn.004a1c70
add esp, 8
jmp 0x4ceacb
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov edi, dword [esp + 0x70]
push 0xfffffffffffffff0
push dword [esp + 0x5c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x54]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, esi
mov byte [esi + 0x6e], 0
call fcn.004a1c70
add esp, 8
jmp 0x4ceacb
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x30], 0
mov edx, dword [esp + 0x28]
jne 0x4ceb95
test edx, edx
jne 0x4ceb99
push edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x80]
mov ecx, ebx
call fcn.004d71e0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x4ce84a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
test eax, eax
js 0x4ceb64
test edx, edx
jne 0x4ceb64
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4ceb59
mov ecx, dword [esi]
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx edx, byte [edi + 1]
call fcn.004a1910
mov ecx, dword [esp + 0x48]
add esp, 4
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov byte [edi], 0x85
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [edi + 0x40], 0xffffffff
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, ebx
push dword [ebp + 8]
push 0xffffffffffffffff
push edx
push 0
push 0
push dword [esp + 0x90]
mov edx, edi
call fcn.004c7330
mov ecx, dword [esp + 0x64]
add esp, 0x20
call fcn.004d7bf0
jmp 0x4d0059
test edx, edx
je 0x4cebd3
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jle 0x4cebb9
add ecx, 0x10
xor esi, esi
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], si
test eax, eax
jg 0x4ceba7
mov esi, dword [esp + 0x5c]
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
test eax, eax
jle 0x4cebd3
add ecx, 0x10
xor edx, edx
lea ecx, [ecx + 0x14]
dec eax
mov word [ecx - 0x14], dx
test eax, eax
jg 0x4cebc5
mov ecx, esi
call fcn.004a1770
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x94]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xf0], eax
test ecx, ecx
je 0x4cec54
mov eax, dword [ecx]
inc eax
mov dword [esp + 0xa0], eax
jmp 0x4cec5f
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0
mov eax, dword [ecx + 0xc]
jle 0x4cecc6
mov edi, eax
xor esi, esi
mov ebx, ecx
jmp 0x4cec80
mov edx, dword [edi]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x4b3890
mov dword [esp + 0x88], 0x4b3b50
mov dword [esp + 0x90], eax
call fcn.004ab750
inc esi
lea edi, [edi + 0x14]
cmp esi, dword [ebx]
jl 0x4cec80
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4ced26
cmp dword [ecx], 0
mov eax, dword [ecx + 0xc]
jle 0x4ced26
mov ebx, eax
xor edi, edi
mov esi, ecx
lea esp, [esp]
mov edx, dword [ebx]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x4b3890
mov dword [esp + 0x88], 0x4b3b50
mov dword [esp + 0x90], eax
call fcn.004ab750
inc edi
lea ebx, [ebx + 0x14]
cmp edi, dword [esi]
jl 0x4cece0
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4ced60
lea ecx, [esp + 0xd4]
mov dword [esp + 0x84], 0x4b3890
mov dword [esp + 0x90], ecx
mov edx, eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x88], 0x4b3b50
call fcn.004ab750
mov eax, dword [esp + 0xa8]
xor edx, edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x20], edx
cmp dword [esp + 0xb8], edx
jle 0x4cee13
xor ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x4ced90
mov eax, dword [esp + 0xb4]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4cedf2
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [eax], ebx
jle 0x4cedf2
mov esi, eax
mov edx, dword [edi]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x4b3890
mov dword [esp + 0x88], 0x4b3b50
mov dword [esp + 0x90], eax
call fcn.004ab750
inc ebx
lea edi, [edi + 0x14]
cmp ebx, dword [esi]
jl 0x4cedb0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
inc edx
add ecx, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], ecx
cmp edx, dword [esp + 0xb8]
jl 0x4ced90
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x1e], 0
jne 0x4d00b7
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4cfb2e
mov eax, dword [ebx + 0x44]
mov ecx, ebx
mov dword [esp + 0x98], eax
inc eax
mov dword [ebx + 0x44], eax
call fcn.004c7c10
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x60], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cee87
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4cee80
mov edx, 1
mov dword [esp + 0x60], edx
jmp 0x4ceec4
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x60]
mov word [eax + ecx*4], 0x28
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
push 0xfffffffffffffff0
push dword [esp + 0x80]
mov ecx, esi
call fcn.004a1c70
mov eax, dword [ebx + 0x48]
add esp, 8
inc eax
mov ecx, esi
mov dword [esp + 0x48], eax
add eax, 2
mov dword [ebx + 0x48], eax
call fcn.004a1770
inc dword [ebx + 0x48]
mov ecx, esi
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x20], eax
call fcn.004a1770
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x38], eax
lea eax, [edx + 1]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
add edx, dword [eax]
mov dword [ebx + 0x48], edx
lea ecx, [edx + 1]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
add ecx, edx
mov dword [ebx + 0x48], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cef44
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cef81
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
inc edx
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cef9c
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cefd4
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cefef
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf027
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
push 0
push eax
push dword [esp + 0x80]
mov ecx, ebx
call fcn.004d71e0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ce84a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4cf06f
mov eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], 0
jmp 0x4cf3d7
mov eax, dword [eax]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x78], 1
mov dword [esp + 0x64], eax
lea edi, [eax + 1]
mov dword [esp + 0x2c], edi
mov ecx, edi
test edx, edx
jle 0x4cf0b2
mov eax, dword [esp + 0xa4]
add eax, 0xc
jmp 0x4cf0a0
cmp dword [eax], ecx
jl 0x4cf0a6
inc edi
inc ecx
add eax, 0x18
sub edx, 1
jne 0x4cf0a0
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x38]
cmp edi, eax
jg 0x4cf0fc
xor edi, edi
lea ecx, [ebx + 0x70]
mov edx, dword [ecx]
mov esi, dword [esp + 0x5c]
cmp edx, dword [esp + 0x28]
jl 0x4cf0e3
mov esi, dword [esp + 0x28]
dec esi
add eax, esi
mov esi, dword [esp + 0x5c]
cmp edx, eax
jle 0x4cf0f8
mov eax, dword [ebx + 0x38]
inc edi
add ecx, 0x18
cmp edi, 0xa
jl 0x4cf0c5
mov edx, dword [esp + 0x2c]
add dword [ebx + 0x3c], edx
sub dword [ebx + 0x38], edx
jmp 0x4cf10b
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
add eax, edi
mov dword [esp + 0x28], ecx
mov dword [ebx + 0x48], eax
mov ecx, ebx
call fcn.004b08b0
mov edx, dword [esp + 0x3c]
push 0
push dword [esp + 0x2c]
call fcn.004b2cf0
mov edi, dword [esi + 0xc]
add esp, 8
mov eax, dword [esp + 0x98]
mov dword [esp + 0x68], eax
cmp dword [esi + 0x10], edi
jg 0x4cf142
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf180
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x68]
mov word [ecx], 0x34
mov dword [ecx + 4], eax
lea eax, [edi + edx]
mov byte [ecx + 3], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
jmp 0x4cf188
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0xa8]
inc edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 0
test ecx, ecx
jle 0x4cf263
add edi, edx
mov dword [esp + 0x3c], 0
mov edi, edi
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0xa4]
cmp dword [ebx + eax + 0xc], edx
mov ebx, dword [esp + 0x34]
jl 0x4cf24d
mov ecx, dword [esp + 0x3c]
push 0
push edi
push dword [ecx + eax + 4]
mov edx, dword [ecx + eax]
push dword [ecx + eax + 8]
mov ecx, ebx
call fcn.004b06d0
add esp, 0x10
mov dword [esp + 0x14], eax
cmp edi, eax
je 0x4cf23c
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x10], eax
jg 0x4cf208
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf23c
mov eax, dword [esp + 0x40]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x14]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0xa8]
inc edx
mov dword [esp + 0x64], edx
inc edi
mov eax, dword [esp + 0x68]
add dword [esp + 0x3c], 0x18
inc eax
mov dword [esp + 0x68], eax
cmp eax, ecx
jl 0x4cf1b0
mov al, byte [ebx + 0x15]
test al, al
jne 0x4cf273
mov edi, dword [ebx + 0x48]
inc edi
mov dword [ebx + 0x48], edi
jmp 0x4cf27f
dec al
mov byte [ebx + 0x15], al
movzx eax, al
mov edi, dword [ebx + eax*4 + 0x18]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf29a
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf2ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x1e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf2f4
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf328
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x43
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
test edi, edi
je 0x4cf356
cmp byte [ebx + 0x15], 8
jae 0x4cf356
xor ecx, ecx
lea eax, [ebx + 0x60]
cmp dword [eax + 0x10], edi
je 0x4cf352
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x4cf337
movzx eax, byte [ebx + 0x15]
mov dword [ebx + eax*4 + 0x18], edi
inc byte [ebx + 0x15]
jmp 0x4cf356
mov byte [eax + 9], 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x38]
jle 0x4cf369
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x18]
call fcn.004d7bf0
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], edi
jg 0x4cf390
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf3c8
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x3f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, ebx
mov byte [esp + 0x95], 1
call fcn.004b08b0
mov eax, dword [esi + 0xc]
mov ecx, ebx
mov dword [esp + 0x64], eax
call fcn.004b08b0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], 0
mov edi, dword [eax]
test edi, edi
jle 0x4cf526
mov edi, dword [esp + 0x80]
xor edx, edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], edi
jmp 0x4cf414
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x78], 0
je 0x4cf47e
mov eax, dword [esp + 0x98]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], eax
jg 0x4cf445
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf4fd
mov eax, dword [esp + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
jmp 0x4cf4fd
mov byte [esp + 0x94], 1
mov ecx, ebx
mov eax, dword [eax + 0xc]
push edi
mov edx, dword [edx + eax]
call fcn.004b0d20
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, edi
je 0x4cf4fd
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x4cf4f9
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
cmp dword [edi + 0x10], eax
jg 0x4cf4c1
mov ecx, edi
call fcn.004a1610
test eax, eax
jne 0x4cf4f9
mov eax, dword [esp + 0x14]
inc dword [edi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [edi + 0x6e], 0
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
inc edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
inc ecx
add edx, 0x14
mov dword [esp + 0x3c], ecx
mov eax, dword [eax]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], edx
cmp ecx, eax
jl 0x4cf410
mov edi, eax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x10], edx
jg 0x4cf548
mov ecx, esi
call fcn.004a1610
test eax, eax
je 0x4cf544
mov edx, 1
jmp 0x4cf583
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [edx + edx*4]
inc dword [esi + 0xc]
mov ebx, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x34]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
push 0xfffffffffffffffa
push dword [esp + 0x80]
mov ecx, esi
call fcn.004a1c70
mov edi, dword [esi + 0xc]
add esp, 8
cmp dword [esi + 0x10], edi
jg 0x4cf5a9
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf5db
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
lea eax, [edi + 1]
mov dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov edx, dword [esp + 0x80]
push dword [eax]
push dword [esp + 0x5c]
call fcn.004b0ba0
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf611
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf654
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x5c]
add edx, 2
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf66f
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf6ac
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x70
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf6c7
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf6ff
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov edx, dword [esi + 0xc]
cmp edx, edi
jle 0x4cf710
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
mov dword [eax + ecx*4 + 8], edx
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004ce230
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x4cf731
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf769
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
cmp dword [esp + 0x78], 0
je 0x4cf7cc
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], edi
jg 0x4cf792
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf80c
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 0x42
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
jmp 0x4cf80c
mov ecx, dword [esp + 0x18]
call fcn.004d7bf0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4cf80c
mov eax, dword [esp + 0x60]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea edi, [ecx + eax*4]
mov ecx, dword [esi]
call fcn.004a1910
add esp, 4
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov byte [edi], 0x85
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x4cf81f
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf85e
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
add edx, 2
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 2
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x4cf871
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf8a9
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
mov dword [esp + 0x40], edi
cmp dword [esi + 0x10], edi
jg 0x4cf8c0
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf8f9
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
inc edx
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x4cf90c
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf94b
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
add edx, 2
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4cf964
mov eax, dword [esp + 0x6c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], edi
jg 0x4cf977
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cf9ad
mov eax, dword [esi + 0x14]
lea ecx, [edi + edi*4]
inc dword [esi + 0xc]
mov word [eax + ecx*4], 0x70
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov dword [ecx + 0xc], 0
mov dword [ecx + 4], eax
lea eax, [edi + 2]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cf9c8
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cfa0b
mov ecx, dword [esp + 0x14]
inc dword [esi + 0xc]
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x5c]
add edx, 2
mov ebx, dword [esp + 0x34]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004ce160
mov edx, dword [esp + 0x44]
inc edi
push 8
push edi
mov ecx, ebx
call fcn.004b3260
push dword [esp + 0x48]
mov ecx, ebx
push edi
push dword [ebp + 8]
mov edi, dword [esp + 0x60]
mov edx, edi
push dword [esp + 0x84]
push dword [esp + 0x6c]
push 0
push 0
push dword [edi]
call fcn.004c7330
mov ecx, dword [esi + 0xc]
add esp, 0x28
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cfa6c
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cfaab
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
add edx, 2
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4cfac4
mov eax, dword [esp + 0x38]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004cdf80
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cfaf1
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4d0040
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 3
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
jmp 0x4d0040
cmp dword [edi + 0xc], 0
mov dword [esp + 0x30], 0
jne 0x4cfdaa
mov edx, dword [edi]
cmp dword [edx], 1
jne 0x4cfdaa
mov eax, dword [edi + 8]
cmp word [eax], 1
jne 0x4cfdaa
cmp dword [eax + 0x18], 0
jne 0x4cfdaa
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x20], ecx
test byte [ecx + 0x22], 0x10
mov edx, dword [eax]
jne 0x4cfdaa
cmp byte [edx], 0x99
jne 0x4cfdaa
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 4]
test byte [eax + 3], 0x20
je 0x4cfdaa
test byte [edx + 2], 0x10
jne 0x4cfdaa
mov edx, dword [ecx + 0x40]
mov ecx, 0xfff0bdc0
mov dword [esp + 0x38], ecx
test edx, edx
je 0x4cfbd9
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [eax + 4], ecx
jle 0x4cfbd9
mov eax, dword [eax + 8]
mov edi, dword [ebx]
add eax, 0xc
cmp dword [eax], edx
je 0x4cfbd1
inc ecx
add eax, 0x10
cmp ecx, dword [edi + 4]
jl 0x4cfbc4
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov eax, dword [ebx + 0x44]
mov edx, ecx
mov dword [esp + 0x6c], eax
mov ecx, ebx
inc eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x18], eax
call fcn.004bab00
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4cfc47
xor edx, edx
jmp 0x4cfc10
test edx, edx
je 0x4cfc1c
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jge 0x4cfc1e
mov edx, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4cfc10
test edx, edx
je 0x4cfc47
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0xc]
jge 0x4cfc47
mov eax, dword [edx + 0x14]
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004bac60
mov dword [esp + 0x70], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cfc67
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cfca0
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x26
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4cfced
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
test edx, edx
je 0x4cfcdf
cmp byte [ecx + 0x1e], 0
jne 0x4cfcdf
mov eax, dword [esi + 0xc]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea edi, [edx + eax*4]
movsx edx, byte [edi + 1]
call fcn.004a1910
mov eax, dword [esp + 0x74]
mov dword [edi + 0x10], eax
mov byte [edi + 1], 0xfa
mov edi, dword [esp + 0x50]
jmp 0x4cfcea
push eax
mov edx, 0xfffffff0
call fcn.004a1910
add esp, 4
mov eax, dword [esp + 0xb4]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x10], ecx
jg 0x4cfd16
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cfd4e
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x1f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esi + 0x6e], 0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], ecx
jg 0x4cfd6d
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cfffb
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
jmp 0x4cfffb
mov eax, dword [edi]
mov dword [esp + 0x20], 0
cmp dword [eax], 1
jne 0x4cff1d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
cmp byte [ecx], 0x99
jne 0x4cff1d
mov eax, 0x1000
test word [ecx + 2], ax
jne 0x4cff1d
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4cff1d
cmp dword [eax], 1
jne 0x4cff1d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp byte [eax], 0x9a
jne 0x4cff1d
mov eax, dword [ecx + 4]
mov edx, 0x52a120
mov al, byte [eax]
mov byte [esp + 0x13], al
test al, al
je 0x4cfe49
mov ebx, dword [ecx + 4]
sub ebx, edx
jmp 0x4cfe20
movzx ecx, byte [edx]
mov byte [esp + 0x13], al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4cfe45
mov al, byte [edx + ebx + 1]
inc edx
mov byte [esp + 0x13], al
test al, al
jne 0x4cfe20
mov ebx, dword [esp + 0x34]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5265d8]
movzx eax, byte [esp + 0x13]
movzx eax, byte [eax + 0x5265d8]
sub eax, ecx
jne 0x4cfe6a
mov byte [esp + 0x13], 1
jmp 0x4cfecd
mov ecx, dword [esp + 0x14]
mov edx, 0x52a124
mov eax, dword [ecx + 4]
mov al, byte [eax]
mov byte [esp + 0x13], al
test al, al
je 0x4cfeae
mov ebx, dword [ecx + 4]
sub ebx, edx
movzx ecx, byte [edx]
mov byte [esp + 0x13], al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4cfeaa
mov al, byte [edx + ebx + 1]
inc edx
mov byte [esp + 0x13], al
test al, al
jne 0x4cfe85
mov ebx, dword [esp + 0x34]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5265d8]
movzx eax, byte [esp + 0x13]
movzx eax, byte [eax + 0x5265d8]
sub eax, ecx
jne 0x4cff1d
mov byte [esp + 0x13], 2
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
call fcn.004ae3b0
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], edx
test edx, edx
je 0x4cff22
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
cmp byte [eax + 0x1e], 0
jne 0x4cff22
mov eax, dword [edx + 0xc]
cmp byte [esp + 0x13], 1
mov dword [esp + 0x30], edx
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x98
jmp 0x4cff22
mov byte [esp + 0x13], 0
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004cdf80
movzx eax, byte [esp + 0x13]
mov ecx, ebx
mov edx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x80]
call fcn.004d71e0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4cff6a
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
call fcn.004aedc0
jmp 0x4ce84a
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004ce230
cmp dword [esp + 0x20], 0
jne 0x4cffe4
cmp byte [esp + 0x13], 0
je 0x4cffe4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], eax
jg 0x4cffac
mov ecx, esi
call fcn.004a1610
test eax, eax
jne 0x4cffe4
mov eax, dword [esp + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 1
mov byte [eax + ecx*4 + 3], 0
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 byte [esi + 0x6e], 0
mov ecx, dword [esp + 0x18]
call fcn.004d7bf0
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.004ce160
mov edx, dword [esp + 0x44]
mov ecx, ebx
push 8
push dword [esp + 0x28]
mov dword [esp + 0x5c], 0
call fcn.004b3260
mov eax, dword [esp + 0x2c]
mov edx, edi
push eax
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [edi]
call fcn.004c7330
mov edx, dword [esp + 0x58]
add esp, 0x28
mov ecx, dword [esp + 0x1c]
call fcn.004aedc0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4d0059
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
cmp dword [esp + 0x54], 0
je 0x4d0076
mov eax, dword [esp + 0x74]
mov edx, edi
push dword [ebp + 8]
mov ecx, ebx
push dword [eax]
push esi
call fcn.004c7d20
add esp, 0xc
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4d0092
mov eax, dword [esp + 0xc0]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp byte [eax], 5
jne 0x4ce84f
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
mov ecx, ebx
call fcn.004c8530
add esp, 4
jmp 0x4ce84f
mov esi, 1
jmp 0x4ce853
mov edx, eax
jmp 0x4ce853
push ecx
call fcn.00491400
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x4d010d
cmp ecx, dword [edx + 0xf0]
jb 0x4d010d
cmp ecx, dword [edx + 0xf4]
jae 0x4d010d
mov eax, dword [edx + 0xec]
mov dword [ecx], eax
mov eax, esi
dec dword [edx + 0xe4]
mov dword [edx + 0xec], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00491400
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret