Function at 0x4c9a30
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 0x4ca596
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 0x4c9aaf
push eax
push edx
call fcn.005199e0
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x1c]
jmp 0x4c9abd
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 0x4c9b06
push edi
push ecx
call fcn.004ec4b0
add esp, 8
test eax, eax
jne 0x4ca594
test dword [edi + 4], 0x800
mov eax, dword [edi + 0x14]
push eax
push dword [ebp - 0x1c]
je 0x4c9afc
call fcn.004cbe70
add esp, 8
jmp 0x4c9b3c
call fcn.00519950
add esp, 8
jmp 0x4c9b3c
cmp eax, 0x32
jne 0x4c9b1b
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
jmp 0x4c9b3c
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4c9b2e
push eax
push edx
call fcn.005199e0
add esp, 8
jmp 0x4c9b3c
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.005199e0
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
cmp dword [ecx], 0
je 0x4c9b6c
mov edx, 0x1000
or word [esi + 0xa], dx
test byte [edi + 4], 1
je 0x4c9bca
movsx eax, word [edi + 0x24]
push eax
push ecx
call fcn.00519ba0
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 0x4c9bd8
ja 0x4c9bb3
cmp dword [ebp - 0x10], ecx
jb 0x4c9bd8
push str.ON_clause_references_tables_to_its_right
push dword [ebp - 8]
call fcn.004ebbf0
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 0x4c9bdb
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 0x4c9d30
cmp al, 0x35
jb 0x4c9c0f
cmp al, 0x39
jbe 0x4c9d30
cmp al, 0x32
je 0x4c9d30
cmp al, 0x2d
je 0x4c9d30
mov al, byte [edi]
cmp al, 0x30
jne 0x4c9d0b
cmp byte [ebx + 8], 0x2c
jne 0x4ca582
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 0x4c9c5d
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cb270
add esp, 0x10
mov esi, eax
jmp 0x4c9c5f
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4c9c78
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cb270
add esp, 0x10
jmp 0x4c9c7a
xor eax, eax
push esi
push eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 0x5849b0]
push eax
push dword [ebp - 8]
call fcn.004fa600
add esp, 0x10
test eax, eax
je 0x4c9ca7
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.00525710
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.004c9a30
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 0x4c9c43
jmp 0x4c9fba
cmp al, 0x2b
jne 0x4c9fbd
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004ca5a0
mov esi, dword [ebx + 0x14]
add esp, 0xc
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
jmp 0x4c9fbd
push dword [edi + 0xc]
call fcn.004f02d0
push dword [edi + 0x10]
mov dword [ebp - 0x10], eax
call fcn.004f02d0
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 0x4c9d67
mov dword [ebp - 0x48], 0x800
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4c9d7d
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4 - 0x10]
jmp 0x4c9d80
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.004cba90
mov edx, dword [ebp - 0x44]
add esp, 0x18
test eax, eax
je 0x4c9dbd
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x58]
push edx
mov dword [esi + 0x1c], eax
call fcn.004d64d0
add esp, 4
and ax, word [ebp - 0x48]
mov word [esi + 0xc], ax
cmp byte [ebp - 1], 0x2d
mov eax, 0x800
jne 0x4c9dcc
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4c9fbd
push edx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebp + 8]
call fcn.004cba90
add esp, 0x18
test eax, eax
je 0x4c9fbd
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x4c], 0
jl 0x4c9f13
mov esi, dword [ebp - 0x14]
push 0
push edi
push esi
call fcn.004eef60
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x51], 0
je 0x4c9e38
test eax, eax
je 0x4ca594
push eax
push esi
call fcn.004eeea0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push eax
push ebx
call fcn.00525710
add esp, 0xc
test eax, eax
je 0x4ca594
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.004d3ae0
add esp, 0xc
cmp byte [ebp - 1], 0x2d
jne 0x4c9e75
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 0x4c9f1c
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, 0x35
je 0x4c9ea1
cmp dl, 0x2d
jne 0x4c9f1c
test byte [eax + 4], 1
jne 0x4c9f1c
push dword [eax + 0xc]
call fcn.004ebe60
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
call fcn.004ebe60
mov cl, al
add esp, 8
mov al, byte [ebp - 1]
cmp al, cl
je 0x4c9ed2
cmp al, 0x43
jl 0x4c9f19
cmp cl, 0x43
jl 0x4c9f19
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004eee30
add esp, 8
test eax, eax
je 0x4c9f05
cmp dword [eax + 0xc], fcn.004c1440
je 0x4c9f05
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp - 8]
call fcn.004eeb70
add esp, 0xc
test eax, eax
je 0x4c9f19
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [ebp - 0x4c], eax
jmp 0x4c9f19
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 0x4c9f54
mov edx, dword [esi + 0x10]
cmp byte [edx], 0xae
je 0x4c9f54
push edx
push eax
push ecx
call fcn.004e3540
mov esi, eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [eax + 0x10]
push dword [ebp - 8]
call fcn.004e3540
add esp, 0x18
cmp esi, eax
mov esi, dword [ebp - 0x10]
je 0x4c9f5b
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 0x4c9f75
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.004d64d0
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 0x4ca582
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.004d24a0
add esp, 0x14
test eax, eax
je 0x4ca21c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x4ca00f
push 0
push 0
push ecx
push dword [ebp - 0x14]
call fcn.004cb270
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x4ca016
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x40], 0
je 0x4ca075
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x4ca075
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 0x4ca075
mov edi, dword [ebp - 0x28]
mov ebx, eax
movzx edx, cl
mov al, byte [edx + 0x583e30]
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 + 0x584248]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
add ebx, esi
mov cl, byte [ebx]
test cl, cl
jne 0x4ca043
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0x51], 0
jne 0x4ca0cc
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 8]
test edx, edx
jne 0x4ca08c
xor ecx, ecx
jmp 0x4ca0a0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ca091
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 0x4ca0bf
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x584248]
inc al
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov byte [edx - 1], al
jmp 0x4ca0d2
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x40], 0
mov eax, 0x583f30
mov esi, str.NOCASE
cmove esi, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], esi
test eax, eax
je 0x4ca0fd
push 0
push 0
push eax
push ecx
call fcn.004cb270
add esp, 0x10
jmp 0x4ca0ff
xor eax, eax
push dword [ebp - 0x28]
push esi
mov esi, dword [ebp - 8]
push eax
push esi
call fcn.004ebd80
add esp, 0xc
push eax
push 0x39
push esi
call fcn.004fa600
add esp, 0x10
test eax, eax
je 0x4ca131
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.00525710
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x48], eax
call fcn.004c9a30
mov eax, dword [ebp - 0x4c]
add esp, 0x18
test eax, eax
je 0x4ca166
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004cb270
add esp, 0x10
jmp 0x4ca168
xor eax, eax
push dword [ebp - 0x38]
push dword [ebp - 0x54]
push eax
push esi
call fcn.004ebd80
add esp, 0xc
push eax
push 0x38
push esi
call fcn.004fa600
add esp, 0x10
test eax, eax
je 0x4ca199
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.00525710
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x54], eax
call fcn.004c9a30
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 0x4ca21c
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 0x4ca582
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.004d1d30
add esp, 0x14
test eax, eax
jle 0x4ca409
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 0x4ca27c
push esi
push dword [ebp - 0x1c]
call fcn.005199e0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x40], edx
jmp 0x4ca28d
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 0x4ca2a2
push ecx
push dword [ebp - 0x1c]
call fcn.005199e0
add esp, 8
jmp 0x4ca2b0
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 0x4ca3ee
test esi, esi
je 0x4ca2d2
push eax
push eax
push esi
push dword [ebp - 0x14]
call fcn.004cb270
add esp, 0x10
jmp 0x4ca2d4
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
push 0
push 0x34
push dword [eax]
call fcn.004e9f60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4ca341
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 0x4ca31a
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.004cbfc0
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4ca356
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004ebbf0
add esp, 0xc
jmp 0x4ca356
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4ca356
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004eeea0
add esp, 8
test byte [edi + 4], 1
je 0x4ca36c
test esi, esi
je 0x4ca36c
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 3
push esi
push ebx
call fcn.00525710
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 0x4ca260
mov esi, dword [ebp - 0x18]
cmp byte [ebx + 8], 0x2c
jne 0x4ca582
mov al, byte [edi]
cmp al, 0x35
je 0x4ca421
cmp al, 0x2d
jne 0x4ca505
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4ca42e
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4ca438
mov edx, dword [eax + 0x14]
jmp 0x4ca447
cmp cl, 0x88
jne 0x4ca505
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov dword [ebp - 0x54], edx
cmp edx, 1
jle 0x4ca505
mov eax, dword [edi + 0x10]
push eax
call fcn.004f03e0
add esp, 4
cmp eax, edx
jne 0x4ca505
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x4ca485
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x800
jne 0x4ca505
xor eax, eax
mov dword [ebp + 0xc], eax
test edx, edx
jle 0x4ca4f4
nop
push eax
push dword [edi + 0xc]
push dword [ebp - 8]
call fcn.004eef90
push dword [ebp + 0xc]
mov esi, eax
push dword [edi + 0x10]
push dword [ebp - 8]
call fcn.004eef90
push eax
movzx eax, byte [edi]
push esi
push eax
push dword [ebp - 8]
call fcn.004fa600
add esp, 0x28
test eax, eax
je 0x4ca4d2
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.00525710
push eax
push ebx
push dword [ebp + 8]
call fcn.004c9a30
mov eax, dword [ebp + 0xc]
add esp, 0x18
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x54]
jl 0x4ca490
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 0x4ca582
cmp byte [edi], 0x31
jne 0x4ca582
cmp dword [esi + 0x18], 0
jne 0x4ca582
mov edx, dword [edi + 0xc]
cmp byte [edx], 0xae
jne 0x4ca582
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x4ca582
cmp dword [eax + 0x44], 0
jne 0x4ca582
xor ecx, ecx
push edx
mov dword [ebp + 0xc], ecx
call fcn.004f03e0
add esp, 4
test eax, eax
jle 0x4ca582
nop
push 2
push edi
push ebx
call fcn.00525710
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.004c9a30
push dword [ebp + 0x10]
push esi
push ebx
call fcn.004d3ae0
push dword [edi + 0xc]
call fcn.004f03e0
add esp, 0x28
cmp dword [ebp + 0xc], eax
jl 0x4ca540
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