Function at 0x4cb480
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov edx, dword [ebx]
mov dword [ebp - 0x40], 0
mov byte [ebp - 2], 0
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x51], 0
jne 0x4cbfe6
mov eax, dword [ebp + 0x10]
add edx, 0x1e8
push esi
push edi
mov dword [ebp - 0x1c], edx
lea esi, [eax + eax*2]
shl esi, 4
mov dword [ebp - 0xc], esi
add esi, dword [ebx + 0x14]
mov dword [ebp - 0x18], esi
mov edi, dword [esi]
mov dword [ebp - 0x54], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4cb4ff
push eax
push edx
call fcn.0051b450
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x1c]
jmp 0x4cb50d
movlpd qword [ebp - 0x5c], xmm0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov al, byte [edi]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x44], eax
cmp eax, 0x31
jne 0x4cb556
push edi
push ecx
call fcn.004edf30
add esp, 8
test eax, eax
jne 0x4cbfe4
test dword [edi + 4], 0x800
mov eax, dword [edi + 0x14]
push eax
push dword [ebp - 0x1c]
je 0x4cb54c
call fcn.004cd8c0
add esp, 8
jmp 0x4cb58c
call fcn.0051b3c0
add esp, 8
jmp 0x4cb58c
cmp eax, 0x32
jne 0x4cb56b
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
jmp 0x4cb58c
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4cb57e
push eax
push edx
call fcn.0051b450
add esp, 8
jmp 0x4cb58c
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
push edi
mov dword [esi + 0x24], edx
push eax
mov dword [eax], 0
call fcn.0051b450
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
cmp dword [ecx], 0
je 0x4cb5bc
mov edx, 0x1000
or word [esi + 0xa], dx
test byte [edi + 4], 1
je 0x4cb61a
movsx eax, word [edi + 0x24]
push eax
push ecx
call fcn.0051b610
or dword [ebp - 0x24], edx
mov ecx, eax
mov eax, dword [ebp - 0x20]
add esp, 8
or eax, ecx
mov dword [ebp - 0x2c], ecx
add dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
adc dword [ebp - 0x30], 0xffffffff
shrd dword [ebp - 0x10], eax, 1
shr eax, 1
cmp eax, edx
jb 0x4cb628
ja 0x4cb603
cmp dword [ebp - 0x10], ecx
jb 0x4cb628
push str.ON_clause_references_tables_to_its_right
push dword [ebp - 8]
call fcn.004ed670
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x2c], ecx
jmp 0x4cb62b
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x2c], eax
xor eax, eax
mov word [esi + 0xc], ax
mov al, byte [ebp - 1]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
cmp al, 0x31
je 0x4cb780
cmp al, 0x35
jb 0x4cb65f
cmp al, 0x39
jbe 0x4cb780
cmp al, 0x32
je 0x4cb780
cmp al, 0x2d
je 0x4cb780
mov al, byte [edi]
cmp al, 0x30
jne 0x4cb75b
cmp byte [ebx + 8], 0x2c
jne 0x4cbfd2
mov eax, dword [edi + 0x14]
add eax, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], eax
mov eax, dword [eax]
test eax, eax
je 0x4cb6ad
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cccc0
add esp, 0x10
mov esi, eax
jmp 0x4cb6af
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4cb6c8
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cccc0
add esp, 0x10
jmp 0x4cb6ca
xor eax, eax
push esi
push eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 0x586cd0]
push eax
push dword [ebp - 8]
call fcn.004fc070
add esp, 0x10
test eax, eax
je 0x4cb6f7
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 3
push eax
push ebx
call fcn.00527180
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.004cb480
mov ecx, dword [ebx + 0x14]
add esp, 0x18
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp - 0x18], edx
lea edx, [esi + esi*2]
mov esi, dword [ebp - 0xc]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov ax, word [esi + ecx + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x38], ecx
inc byte [eax + esi + 0xe]
mov eax, dword [ebp - 0x48]
add eax, 0x14
mov dword [ebp - 0x48], eax
cmp ecx, 2
jl 0x4cb693
jmp 0x4cba0a
cmp al, 0x2b
jne 0x4cba0d
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004cbff0
mov esi, dword [ebx + 0x14]
add esp, 0xc
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
jmp 0x4cba0d
push dword [edi + 0xc]
call fcn.004f1d50
push dword [edi + 0x10]
mov dword [ebp - 0x10], eax
call fcn.004f1d50
mov edx, dword [esi + 0x20]
add esp, 8
mov ecx, dword [esi + 0x24]
and edx, dword [ebp - 0x34]
and ecx, dword [ebp - 0x38]
or edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x1fff
je 0x4cb7b7
mov dword [ebp - 0x48], 0x800
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4cb7cd
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4 - 0x10]
jmp 0x4cb7d0
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.004cd4e0
mov edx, dword [ebp - 0x44]
add esp, 0x18
test eax, eax
je 0x4cb80d
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x58]
push edx
mov dword [esi + 0x1c], eax
call fcn.004d7f20
add esp, 4
and ax, word [ebp - 0x48]
mov word [esi + 0xc], ax
cmp byte [ebp - 1], 0x2d
mov eax, 0x800
jne 0x4cb81c
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4cba0d
push edx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebp + 8]
call fcn.004cd4e0
add esp, 0x18
test eax, eax
je 0x4cba0d
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x4c], 0
jl 0x4cb963
mov esi, dword [ebp - 0x14]
push 0
push edi
push esi
call fcn.004f09e0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x51], 0
je 0x4cb888
test eax, eax
je 0x4cbfe4
push eax
push esi
call fcn.004f0920
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push eax
push ebx
call fcn.00527180
add esp, 0xc
test eax, eax
je 0x4cbfe4
mov ecx, dword [ebp + 0x10]
lea esi, [eax + eax*2]
push ecx
shl esi, 4
add esi, dword [ebx + 0x14]
push eax
push ebx
mov dword [ebp - 0x44], esi
call fcn.004d5530
add esp, 0xc
cmp byte [ebp - 1], 0x2d
jne 0x4cb8c5
mov eax, 0x800
or word [esi + 0xa], ax
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], esi
or word [esi + 0xa], 8
mov eax, dword [ecx]
test byte [eax + 0x4c], 0x80
jne 0x4cb96c
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, 0x35
je 0x4cb8f1
cmp dl, 0x2d
jne 0x4cb96c
test byte [eax + 4], 1
jne 0x4cb96c
push dword [eax + 0xc]
call fcn.004ed8e0
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
call fcn.004ed8e0
mov cl, al
add esp, 8
mov al, byte [ebp - 1]
cmp al, cl
je 0x4cb922
cmp al, 0x43
jl 0x4cb969
cmp cl, 0x43
jl 0x4cb969
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004f08b0
add esp, 8
test eax, eax
je 0x4cb955
cmp dword [eax + 0xc], fcn.004c2e90
je 0x4cb955
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp - 8]
call fcn.004f05f0
add esp, 0xc
test eax, eax
je 0x4cb969
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [ebp - 0x4c], eax
jmp 0x4cb969
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
cmp byte [eax], 0xae
je 0x4cb9a4
mov edx, dword [esi + 0x10]
cmp byte [edx], 0xae
je 0x4cb9a4
push edx
push eax
push ecx
call fcn.004e4fc0
mov esi, eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [eax + 0x10]
push dword [ebp - 8]
call fcn.004e4fc0
add esp, 0x18
cmp esi, eax
mov esi, dword [ebp - 0x10]
je 0x4cb9ab
xor dword [esi + 4], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov al, byte [esi]
mov dword [esi + 0xc], ecx
cmp al, 0x36
jb 0x4cb9c5
sub al, 0x36
xor al, 2
add al, 0x36
mov byte [esi], al
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x38]
or ecx, dword [ebp - 0x30]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x2c]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x24], ecx
mov dword [edx + 0x2c], eax
movzx eax, byte [esi]
push eax
call fcn.004d7f20
add ax, word [ebp - 0x4c]
add esp, 4
and ax, word [ebp - 0x48]
mov word [edx + 0xc], ax
mov esi, dword [ebp - 0x18]
cmp byte [ebx + 8], 0x2c
jne 0x4cbfd2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 8]
call fcn.004d3ef0
add esp, 0x14
test eax, eax
je 0x4cbc6c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x4cba5f
push 0
push 0
push ecx
push dword [ebp - 0x14]
call fcn.004cccc0
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x4cba66
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x40], 0
je 0x4cbac5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x4cbac5
mov eax, 0x400
or word [esi + 0xa], ax
xor esi, esi
mov eax, dword [ecx + 8]
mov dword [ebp - 0x48], eax
mov cl, byte [eax]
test cl, cl
je 0x4cbac5
mov edi, dword [ebp - 0x28]
mov ebx, eax
movzx edx, cl
mov al, byte [edx + 0x586150]
and al, 0x20
not al
and al, cl
mov byte [ebx], al
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov al, byte [edx + 0x586568]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
add ebx, esi
mov cl, byte [ebx]
test cl, cl
jne 0x4cba93
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0x51], 0
jne 0x4cbb1c
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 8]
test edx, edx
jne 0x4cbadc
xor ecx, ecx
jmp 0x4cbaf0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cbae1
sub ecx, esi
and ecx, 0x3fffffff
mov al, byte [edx + ecx - 1]
add edx, ecx
cmp dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x3c]
je 0x4cbb0f
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x586568]
inc al
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov byte [edx - 1], al
jmp 0x4cbb22
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x40], 0
mov eax, 0x586250
mov esi, str.NOCASE
cmove esi, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], esi
test eax, eax
je 0x4cbb4d
push 0
push 0
push eax
push ecx
call fcn.004cccc0
add esp, 0x10
jmp 0x4cbb4f
xor eax, eax
push dword [ebp - 0x28]
push esi
mov esi, dword [ebp - 8]
push eax
push esi
call fcn.004ed800
add esp, 0xc
push eax
push 0x39
push esi
call fcn.004fc070
add esp, 0x10
test eax, eax
je 0x4cbb81
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
push eax
push ebx
call fcn.00527180
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x48], eax
call fcn.004cb480
mov eax, dword [ebp - 0x4c]
add esp, 0x18
test eax, eax
je 0x4cbbb6
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cccc0
add esp, 0x10
jmp 0x4cbbb8
xor eax, eax
push dword [ebp - 0x38]
push dword [ebp - 0x54]
push eax
push esi
call fcn.004ed800
add esp, 0xc
push eax
push 0x38
push esi
call fcn.004fc070
add esp, 0x10
test eax, eax
je 0x4cbbe9
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
push eax
push ebx
call fcn.00527180
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x54], eax
call fcn.004cb480
mov ecx, dword [ebx + 0x14]
add esp, 0x18
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0xc]
lea esi, [ecx + eax]
mov dword [ebp - 0x18], esi
je 0x4cbc6c
mov eax, dword [ebp - 0x48]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x10]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0xc]
inc byte [eax + ecx + 0xe]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0x10]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x14]
add edx, edx
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0xc]
inc byte [eax + ecx + 0xe]
cmp byte [ebx + 8], 0x2c
jne 0x4cbfd2
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 2]
push eax
push edi
push dword [ebp - 0x14]
call fcn.004d3780
add esp, 0x14
test eax, eax
jle 0x4cbe59
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], esi
mov dword [ebp + 0xc], ecx
dec eax
mov dword [ebp - 0x54], eax
test esi, esi
je 0x4cbccc
push esi
push dword [ebp - 0x1c]
call fcn.0051b450
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x40], edx
jmp 0x4cbcdd
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x4cbcf2
push ecx
push dword [ebp - 0x1c]
call fcn.0051b450
add esp, 8
jmp 0x4cbd00
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
and eax, dword [ebp - 0x44]
and edx, dword [ebp - 0x40]
or eax, edx
jne 0x4cbe3e
test esi, esi
je 0x4cbd22
push eax
push eax
push esi
push dword [ebp - 0x14]
call fcn.004cccc0
add esp, 0x10
jmp 0x4cbd24
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
push 0
push 0x34
push dword [eax]
call fcn.004eb9e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4cbd91
push 0x34
push 0
push esi
call sub.msvcrt.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x2e
mov word [esi + 0x22], ax
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4cbd6a
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.004cda10
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4cbda6
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004ed670
add esp, 0xc
jmp 0x4cbda6
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4cbda6
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004f0920
add esp, 8
test byte [edi + 4], 1
je 0x4cbdbc
test esi, esi
je 0x4cbdbc
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 3
push esi
push ebx
call fcn.00527180
mov esi, dword [ebx + 0x14]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x44]
shl edx, 4
add esi, edx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [ebp - 2]
mov byte [esi + 0xf], al
mov eax, dword [ebx + 0x14]
mov dword [eax + edx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0xc]
inc byte [eax + ecx + 0xe]
mov edx, dword [ebx + 0x14]
add edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [edx + 0x28]
or word [edx + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x2c], eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov esi, eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
test eax, eax
jg 0x4cbcb0
mov esi, dword [ebp - 0x18]
cmp byte [ebx + 8], 0x2c
jne 0x4cbfd2
mov al, byte [edi]
cmp al, 0x35
je 0x4cbe71
cmp al, 0x2d
jne 0x4cbf55
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4cbe7e
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4cbe88
mov edx, dword [eax + 0x14]
jmp 0x4cbe97
cmp cl, 0x88
jne 0x4cbf55
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov dword [ebp - 0x54], edx
cmp edx, 1
jle 0x4cbf55
mov eax, dword [edi + 0x10]
push eax
call fcn.004f1e60
add esp, 4
cmp eax, edx
jne 0x4cbf55
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x4cbed5
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x800
jne 0x4cbf55
xor eax, eax
mov dword [ebp + 0xc], eax
test edx, edx
jle 0x4cbf44
nop
push eax
push dword [edi + 0xc]
push dword [ebp - 8]
call fcn.004f0a10
push dword [ebp + 0xc]
mov esi, eax
push dword [edi + 0x10]
push dword [ebp - 8]
call fcn.004f0a10
push eax
movzx eax, byte [edi]
push esi
push eax
push dword [ebp - 8]
call fcn.004fc070
add esp, 0x28
test eax, eax
je 0x4cbf22
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 1
push eax
push ebx
call fcn.00527180
push eax
push ebx
push dword [ebp + 8]
call fcn.004cb480
mov eax, dword [ebp + 0xc]
add esp, 0x18
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x54]
jl 0x4cbee0
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
or word [esi + 0xa], 6
xor eax, eax
mov word [esi + 0xc], ax
cmp byte [ebx + 8], 0x2c
jne 0x4cbfd2
cmp byte [edi], 0x31
jne 0x4cbfd2
cmp dword [esi + 0x18], 0
jne 0x4cbfd2
mov edx, dword [edi + 0xc]
cmp byte [edx], 0xae
jne 0x4cbfd2
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x4cbfd2
cmp dword [eax + 0x44], 0
jne 0x4cbfd2
xor ecx, ecx
push edx
mov dword [ebp + 0xc], ecx
call fcn.004f1e60
add esp, 4
test eax, eax
jle 0x4cbfd2
nop
push 2
push edi
push ebx
call fcn.00527180
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
inc eax
lea edx, [esi + esi*2]
mov dword [ebp + 0xc], eax
add edx, edx
push ebx
push dword [ebp + 8]
mov dword [ecx + edx*8 + 0x18], eax
call fcn.004cb480
push dword [ebp + 0x10]
push esi
push ebx
call fcn.004d5530
push dword [edi + 0xc]
call fcn.004f1e60
add esp, 0x28
cmp dword [ebp + 0xc], eax
jl 0x4cbf90
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
or dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x30]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret