Function at 0x4c8940
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 0x4c94a6
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 0x4c89bf
push eax
push edx
call fcn.005188e0
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x1c]
jmp 0x4c89cd
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 0x4c8a16
push edi
push ecx
call fcn.004eb3d0
add esp, 8
test eax, eax
jne 0x4c94a4
test dword [edi + 4], 0x800
mov eax, dword [edi + 0x14]
push eax
push dword [ebp - 0x1c]
je 0x4c8a0c
call fcn.004cad80
add esp, 8
jmp 0x4c8a4c
call fcn.00518850
add esp, 8
jmp 0x4c8a4c
cmp eax, 0x32
jne 0x4c8a2b
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
jmp 0x4c8a4c
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4c8a3e
push eax
push edx
call fcn.005188e0
add esp, 8
jmp 0x4c8a4c
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.005188e0
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
cmp dword [ecx], 0
je 0x4c8a7c
mov edx, 0x1000
or word [esi + 0xa], dx
test byte [edi + 4], 1
je 0x4c8ada
movsx eax, word [edi + 0x24]
push eax
push ecx
call fcn.00518aa0
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 0x4c8ae8
ja 0x4c8ac3
cmp dword [ebp - 0x10], ecx
jb 0x4c8ae8
push str.ON_clause_references_tables_to_its_right
push dword [ebp - 8]
call fcn.004eab10
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 0x4c8aeb
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 0x4c8c40
cmp al, 0x35
jb 0x4c8b1f
cmp al, 0x39
jbe 0x4c8c40
cmp al, 0x32
je 0x4c8c40
cmp al, 0x2d
je 0x4c8c40
mov al, byte [edi]
cmp al, 0x30
jne 0x4c8c1b
cmp byte [ebx + 8], 0x2c
jne 0x4c9492
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 0x4c8b6d
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004ca180
add esp, 0x10
mov esi, eax
jmp 0x4c8b6f
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4c8b88
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004ca180
add esp, 0x10
jmp 0x4c8b8a
xor eax, eax
push esi
push eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + 0x583c10]
push eax
push dword [ebp - 8]
call fcn.004f9510
add esp, 0x10
test eax, eax
je 0x4c8bb7
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.00524610
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.004c8940
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 0x4c8b53
jmp 0x4c8eca
cmp al, 0x2b
jne 0x4c8ecd
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004c94b0
mov esi, dword [ebx + 0x14]
add esp, 0xc
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
jmp 0x4c8ecd
push dword [edi + 0xc]
call fcn.004ef1f0
push dword [edi + 0x10]
mov dword [ebp - 0x10], eax
call fcn.004ef1f0
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 0x4c8c77
mov dword [ebp - 0x48], 0x800
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4c8c8d
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4 - 0x10]
jmp 0x4c8c90
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.004ca9a0
mov edx, dword [ebp - 0x44]
add esp, 0x18
test eax, eax
je 0x4c8ccd
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x58]
push edx
mov dword [esi + 0x1c], eax
call fcn.004d53e0
add esp, 4
and ax, word [ebp - 0x48]
mov word [esi + 0xc], ax
cmp byte [ebp - 1], 0x2d
mov eax, 0x800
jne 0x4c8cdc
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4c8ecd
push edx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [ebp + 8]
call fcn.004ca9a0
add esp, 0x18
test eax, eax
je 0x4c8ecd
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x4c], 0
jl 0x4c8e23
mov esi, dword [ebp - 0x14]
push 0
push edi
push esi
call fcn.004ede80
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x51], 0
je 0x4c8d48
test eax, eax
je 0x4c94a4
push eax
push esi
call fcn.004eddc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
push eax
push ebx
call fcn.00524610
add esp, 0xc
test eax, eax
je 0x4c94a4
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.004d29f0
add esp, 0xc
cmp byte [ebp - 1], 0x2d
jne 0x4c8d85
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 0x4c8e2c
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, 0x35
je 0x4c8db1
cmp dl, 0x2d
jne 0x4c8e2c
test byte [eax + 4], 1
jne 0x4c8e2c
push dword [eax + 0xc]
call fcn.004ead80
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
call fcn.004ead80
mov cl, al
add esp, 8
mov al, byte [ebp - 1]
cmp al, cl
je 0x4c8de2
cmp al, 0x43
jl 0x4c8e29
cmp cl, 0x43
jl 0x4c8e29
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.004edd50
add esp, 8
test eax, eax
je 0x4c8e15
cmp dword [eax + 0xc], fcn.004c0350
je 0x4c8e15
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp - 8]
call fcn.004eda90
add esp, 0xc
test eax, eax
je 0x4c8e29
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [ebp - 0x4c], eax
jmp 0x4c8e29
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 0x4c8e64
mov edx, dword [esi + 0x10]
cmp byte [edx], 0xae
je 0x4c8e64
push edx
push eax
push ecx
call fcn.004e2450
mov esi, eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [eax + 0x10]
push dword [ebp - 8]
call fcn.004e2450
add esp, 0x18
cmp esi, eax
mov esi, dword [ebp - 0x10]
je 0x4c8e6b
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 0x4c8e85
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.004d53e0
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 0x4c9492
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.004d13b0
add esp, 0x14
test eax, eax
je 0x4c912c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x4c8f1f
push 0
push 0
push ecx
push dword [ebp - 0x14]
call fcn.004ca180
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x4c8f26
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x40], 0
je 0x4c8f85
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x4c8f85
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 0x4c8f85
mov edi, dword [ebp - 0x28]
mov ebx, eax
movzx edx, cl
mov al, byte [edx + 0x583090]
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 + 0x5834a8]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
add ebx, esi
mov cl, byte [ebx]
test cl, cl
jne 0x4c8f53
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0x51], 0
jne 0x4c8fdc
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 8]
test edx, edx
jne 0x4c8f9c
xor ecx, ecx
jmp 0x4c8fb0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8fa1
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 0x4c8fcf
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x5834a8]
inc al
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov byte [edx - 1], al
jmp 0x4c8fe2
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x40], 0
mov eax, 0x583190
mov esi, str.NOCASE
cmove esi, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], esi
test eax, eax
je 0x4c900d
push 0
push 0
push eax
push ecx
call fcn.004ca180
add esp, 0x10
jmp 0x4c900f
xor eax, eax
push dword [ebp - 0x28]
push esi
mov esi, dword [ebp - 8]
push eax
push esi
call fcn.004eaca0
add esp, 0xc
push eax
push 0x39
push esi
call fcn.004f9510
add esp, 0x10
test eax, eax
je 0x4c9041
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.00524610
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x48], eax
call fcn.004c8940
mov eax, dword [ebp - 0x4c]
add esp, 0x18
test eax, eax
je 0x4c9076
push 0
push 0
push eax
push dword [ebp - 0x14]
call fcn.004ca180
add esp, 0x10
jmp 0x4c9078
xor eax, eax
push dword [ebp - 0x38]
push dword [ebp - 0x54]
push eax
push esi
call fcn.004eaca0
add esp, 0xc
push eax
push 0x38
push esi
call fcn.004f9510
add esp, 0x10
test eax, eax
je 0x4c90a9
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.00524610
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x54], eax
call fcn.004c8940
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 0x4c912c
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 0x4c9492
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.004d0c40
add esp, 0x14
test eax, eax
jle 0x4c9319
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 0x4c918c
push esi
push dword [ebp - 0x1c]
call fcn.005188e0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x40], edx
jmp 0x4c919d
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 0x4c91b2
push ecx
push dword [ebp - 0x1c]
call fcn.005188e0
add esp, 8
jmp 0x4c91c0
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 0x4c92fe
test esi, esi
je 0x4c91e2
push eax
push eax
push esi
push dword [ebp - 0x14]
call fcn.004ca180
add esp, 0x10
jmp 0x4c91e4
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
push 0
push 0x34
push dword [eax]
call fcn.004e8e80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4c9251
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 0x4c922a
mov dword [esi + 0x10], eax
mov eax, dword [eax + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.004caed0
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4c9266
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004eab10
add esp, 0xc
jmp 0x4c9266
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c9266
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004eddc0
add esp, 8
test byte [edi + 4], 1
je 0x4c927c
test esi, esi
je 0x4c927c
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 3
push esi
push ebx
call fcn.00524610
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 0x4c9170
mov esi, dword [ebp - 0x18]
cmp byte [ebx + 8], 0x2c
jne 0x4c9492
mov al, byte [edi]
cmp al, 0x35
je 0x4c9331
cmp al, 0x2d
jne 0x4c9415
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4c933e
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4c9348
mov edx, dword [eax + 0x14]
jmp 0x4c9357
cmp cl, 0x88
jne 0x4c9415
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov dword [ebp - 0x54], edx
cmp edx, 1
jle 0x4c9415
mov eax, dword [edi + 0x10]
push eax
call fcn.004ef300
add esp, 4
cmp eax, edx
jne 0x4c9415
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x4c9395
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x800
jne 0x4c9415
xor eax, eax
mov dword [ebp + 0xc], eax
test edx, edx
jle 0x4c9404
nop
push eax
push dword [edi + 0xc]
push dword [ebp - 8]
call fcn.004edeb0
push dword [ebp + 0xc]
mov esi, eax
push dword [edi + 0x10]
push dword [ebp - 8]
call fcn.004edeb0
push eax
movzx eax, byte [edi]
push esi
push eax
push dword [ebp - 8]
call fcn.004f9510
add esp, 0x28
test eax, eax
je 0x4c93e2
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.00524610
push eax
push ebx
push dword [ebp + 8]
call fcn.004c8940
mov eax, dword [ebp + 0xc]
add esp, 0x18
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x54]
jl 0x4c93a0
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 0x4c9492
cmp byte [edi], 0x31
jne 0x4c9492
cmp dword [esi + 0x18], 0
jne 0x4c9492
mov edx, dword [edi + 0xc]
cmp byte [edx], 0xae
jne 0x4c9492
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x4c9492
cmp dword [eax + 0x44], 0
jne 0x4c9492
xor ecx, ecx
push edx
mov dword [ebp + 0xc], ecx
call fcn.004ef300
add esp, 4
test eax, eax
jle 0x4c9492
nop
push 2
push edi
push ebx
call fcn.00524610
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.004c8940
push dword [ebp + 0x10]
push esi
push ebx
call fcn.004d29f0
push dword [edi + 0xc]
call fcn.004ef300
add esp, 0x28
cmp dword [ebp + 0xc], eax
jl 0x4c9450
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