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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51310b
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
lea edx, [0x60ec2a]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call dbg.strings.LastIndex
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
jl 0x5130d4
lea ecx, [eax + 1]
mov edx, dword [esp + 0x64]
cmp ecx, edx
ja 0x513104
sub edx, ecx
mov ebx, edx
neg edx
sar edx, 0x1f
and ecx, edx
mov edx, dword [esp + 0x60]
add ecx, edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call dbg.net/url.parseHost
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x5130b0
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x51308c
mov ecx, dword [esp + 0x64]
cmp eax, ecx
ja 0x5130fd
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.net/url.validUserinfo
movzx eax, byte [esp + 8]
test al, al
je 0x51301b
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
lea edx, [0x60ec24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call dbg.strings.Contains
movzx eax, byte [esp + 0x10]
test al, al
je 0x512f3e
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [0x60ec24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov byte [esp + 0x10], 1
call dbg.net/url.split
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
call dbg.net/url.unescape
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x512f1a
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], 5
call dbg.net/url.unescape
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x512ef6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ecx
lea eax, [0x5eada0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x74e1b0]
test ecx, ecx
jne 0x512ee0
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x74e1b0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x512eca
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov byte [eax + 0x10], 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov dword [esp], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x3c]
jmp 0x512e9e
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x3c]
jmp 0x512e83
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], 5
call dbg.net/url.unescape
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test edx, edx
jne 0x512ff7
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
lea eax, [0x5eada0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [0x74e1b0]
test ecx, ecx
jne 0x512fe1
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [0x74e1b0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x512fcb
mov dword [eax + 8], 0
mov byte [eax + 0x10], 0
jmp 0x512ea2
mov dword [esp], edx
mov dword [esp + 4], 0
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x40]
jmp 0x512fc2
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x40]
jmp 0x512fa7
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
lea eax, [0x5dcec0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x19
mov ecx, dword [0x74e1b0]
test ecx, ecx
jne 0x513070
lea ecx, [0x615516]
mov dword [eax], ecx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea ecx, [0x640f30]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
mov dword [esp + 0x54], eax
mov dword [esp], eax
lea ecx, [0x615516]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x54]
jmp 0x513046
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call dbg.net/url.parseHost
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
jmp 0x512d2b
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicslice
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.net/url.parseAuthority