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

Disassembly:
push 0xffffffffffffffff
push 0x53d2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577830]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], eax
mov byte [esp + 0x54], al
mov dword [esp + 0x7c], eax
lea edi, [eax + 2]
mov al, byte [esi]
test al, al
je 0x501c77
cmp al, 0x2f
je 0x501c6a
cmp al, 0x5b
jne 0x501c6d
add edi, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x501c62
mov ebx, dword [edx + 8]
cmp dword [edx + 4], ebx
jbe 0x501c84
call fcn.005143e1
mov eax, dword [esp + 0x20]
mov ebp, dword [eax + 4]
cmp ebp, dword [eax + 8]
jbe 0x501c95
call fcn.005143e1
mov eax, dword [esp + 0x20]
push ebx
push eax
push ebp
push eax
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004ff170
mov ecx, dword [esp + 0x20]
push edi
call fcn.005036f0
mov al, byte [esi]
test al, al
mov ebp, esi
je 0x501cda
lea ebx, [ebx]
cmp al, 0x2f
je 0x501cd6
cmp al, 0x5b
je 0x501cd6
cmp al, 0x2a
je 0x501cd6
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x501cc0
cmp ebp, esi
jne 0x501cfb
push 0x5725f8
lea edx, [esp + 0x1c]
mov eax, 0x66
mov ecx, str.Empty_initial_XPath_step
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov eax, ebp
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.004fee90
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x501d19
lea eax, [esp + 0x54]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push esi
push eax
call fcn.00500d20
mov eax, dword [0x59b604]
mov ecx, dword [eax + 4]
mov ebx, eax
mov eax, dword [esi + 4]
add esp, 8
test eax, eax
mov edi, 1
mov dword [esp + 0x1c], ecx
je 0x501d51
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 5
cmp ecx, edi
ja 0x501d56
call fcn.005143e1
mov edx, esi
mov eax, dword [edx + 4]
add eax, 0x20
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004fe6a0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x501d75
cmp eax, ebx
je 0x501d7a
call fcn.005143e1
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 4], ecx
je 0x501d88
mov edi, 0x11
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x501da0
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 5
cmp eax, 1
ja 0x501da9
call fcn.005143e1
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
or dword [eax + 0x3c], edi
mov al, byte [ebp]
test al, al
je 0x502126
lea ebx, [ebx]
cmp al, 0x2f
mov edi, ebp
jne 0x501dc9
lea edi, [ebp + 1]
mov al, byte [edi]
cmp al, 0x2a
jne 0x501ddd
mov al, byte [edi + 1]
add edi, 1
cmp al, 0x5b
jne 0x502161
cmp al, 0x5b
mov ebp, edi
je 0x501e18
test al, al
mov dword [esp + 0x24], edi
je 0x501e06
jmp 0x501df0
cmp al, 0x2f
je 0x501e06
cmp al, 0x5b
je 0x501e06
cmp al, 0x2a
je 0x501e06
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x501df0
mov esi, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], esi
jmp 0x501f3a
lea ecx, [edi + 1]
mov ebp, ecx
mov al, byte [ebp]
cmp al, 0x30
jl 0x501e56
cmp al, 0x39
jg 0x501e56
test al, al
je 0x501e42
lea esp, [esp]
cmp al, 0x30
jl 0x501e42
cmp al, 0x39
jg 0x501e42
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x501e30
cmp byte [ebp], 0x5d
jne 0x502182
mov esi, 3
jmp 0x501f29
test al, al
je 0x501e72
lea ebx, [ebx]
cmp al, 0x5d
je 0x501e93
cmp al, 0x3d
je 0x501e93
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x501e60
mov eax, 0x66
mov dword [esp + 0x18], eax
push 0x5725f8
lea eax, [esp + 0x1c]
mov ecx, str.Missing___or__for_array_index
push eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov al, byte [ebp]
test al, al
je 0x501e72
cmp al, 0x5d
jne 0x501ebe
mov edx, ebp
sub edx, edi
push edx
push edi
push str._last__
call fcn.00519e25
add esp, 0xc
test eax, eax
jne 0x5021a3
lea esi, [eax + 4]
jmp 0x501f29
mov dword [esp + 0x18], ebp
add ebp, 1
mov dword [esp + 0x24], ecx
mov cl, byte [ebp]
cmp cl, 0x27
je 0x501eda
cmp cl, 0x22
jne 0x5021c4
mov al, byte [ebp + 1]
add ebp, 1
test al, al
je 0x501efa
cmp al, cl
jne 0x501ef0
cmp byte [ebp + 1], cl
jne 0x501f1b
add ebp, 1
mov al, byte [ebp + 1]
add ebp, 1
test al, al
jne 0x501ee4
mov eax, 0x66
mov dword [esp + 0x18], eax
push 0x5725f8
lea eax, [esp + 0x1c]
mov ecx, str.No_terminating_quote_for_array_selector
push eax
mov dword [esp + 0x24], ecx
call fcn.00513696
cmp byte [ebp], 0
je 0x501efa
add ebp, 1
mov esi, 6
cmp byte [ebp], 0x5d
mov dword [esp + 0x28], esi
jne 0x5021e5
add ebp, 1
cmp ebp, edi
je 0x502206
mov eax, ebp
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.004fee90
mov eax, esi
and eax, 0xf
mov esi, 1
cmp eax, esi
jne 0x502002
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ebx, dword [esp + 0x54]
mov eax, ebx
jae 0x501f76
lea eax, [esp + 0x54]
cmp byte [eax], 0x40
jne 0x501fdc
cmp edi, 0x10
mov eax, ebx
jae 0x501f86
lea eax, [esp + 0x54]
mov byte [eax], 0x3f
mov esi, dword [esp + 0x64]
cmp esi, 9
mov eax, esi
jb 0x501f99
mov eax, 9
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ebx, dword [esp + 0x54]
mov ecx, ebx
jae 0x501fac
lea ecx, [esp + 0x54]
push ecx
mov ecx, str._xml:lang
call fcn.004fc4e0
add esp, 4
test eax, eax
jne 0x502227
cmp esi, 9
jb 0x502227
cmp esi, 9
setne al
test eax, eax
jne 0x502227
lea esi, [eax + 1]
cmp edi, 0x10
mov eax, ebx
jae 0x501fe7
lea eax, [esp + 0x54]
cmp byte [eax], 0x3f
jne 0x501ff8
add dword [esp + 0x24], esi
mov dword [esp + 0x28], 2
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x5020a2
cmp eax, 6
jne 0x5020ae
cmp dword [esp + 0x64], esi
jae 0x502016
call fcn.005143e1
mov eax, dword [esp + 0x54]
mov edi, 0x10
cmp dword [esp + 0x68], edi
jae 0x502029
lea eax, [esp + 0x54]
cmp byte [eax + 1], 0x40
jne 0x502072
cmp dword [esp + 0x64], esi
jae 0x50203a
call fcn.005143e1
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x502048
lea eax, [esp + 0x54]
mov byte [eax + 1], 0x3f
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x50205a
lea eax, [esp + 0x54]
push 0xb
push str.__xml:lang
push eax
call fcn.00519e25
add esp, 0xc
test eax, eax
jne 0x502248
cmp dword [esp + 0x64], esi
jae 0x50207d
call fcn.005143e1
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x50208b
lea eax, [esp + 0x54]
cmp byte [eax + 1], 0x3f
jne 0x50209d
add dword [esp + 0x24], esi
mov dword [esp + 0x28], 5
mov edx, dword [esp + 0x18]
push edx
mov edi, dword [esp + 0x28]
call fcn.00501070
add esp, 4
mov eax, dword [esp + 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0x78]
mov ebx, 0xf
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], edi
push edx
mov byte [ecx + 4], 0
call fcn.004fe7d0
lea esi, [esp + 0x50]
call fcn.00500b20
mov esi, dword [esp + 0x20]
push eax
mov byte [esp + 0x80], 1
call fcn.004fe480
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x48], 0x10
jb 0x50210e
mov eax, dword [esp + 0x34]
push eax
call fcn.00511cfe
add esp, 4
mov al, byte [ebp]
test al, al
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
jne 0x501dc0
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x502142
mov edx, dword [esp + 0x54]
push edx
call fcn.00511cfe
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005120db
add esp, 0x6c
ret
mov ecx, str.Missing___after_
mov dword [esp + 0x1c], ecx
push 0x5725f8
lea ecx, [esp + 0x1c]
mov eax, 0x66
push ecx
mov dword [esp + 0x20], eax
call fcn.00513696
push 0x5725f8
lea edx, [esp + 0x1c]
mov eax, 0x66
mov ecx, str.Missing___for_integer_array_index
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov ecx, str.Invalid_non_numeric_array_index
mov dword [esp + 0x1c], ecx
push 0x5725f8
lea ecx, [esp + 0x1c]
mov eax, 0x66
push ecx
mov dword [esp + 0x20], eax
call fcn.00513696
push 0x5725f8
lea edx, [esp + 0x1c]
mov eax, 0x66
mov ecx, str.Invalid_quote_in_array_selector
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov ecx, str.Missing___for_array_index
mov dword [esp + 0x1c], ecx
push 0x5725f8
lea ecx, [esp + 0x1c]
mov eax, 0x66
push ecx
mov dword [esp + 0x20], eax
call fcn.00513696
push 0x5725f8
lea edx, [esp + 0x1c]
mov eax, 0x66
mov ecx, str.Empty_XPath_step
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov eax, 0x66
mov dword [esp + 0x18], eax
push 0x5725f8
lea eax, [esp + 0x1c]
mov ecx, str.Only_xml:lang_allowed_with__
push eax
mov dword [esp + 0x24], ecx
call fcn.00513696
mov ecx, str.Only_xml:lang_allowed_with__
mov dword [esp + 0x1c], ecx
push 0x5725f8
lea ecx, [esp + 0x1c]
mov eax, 0x66
push ecx
mov dword [esp + 0x20], eax
call fcn.00513696
int3