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

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a73ca
sub esp, 0x68
mov eax, dword [esp + 0x70]
cmp eax, 4
jl 0x4a70b3
mov ecx, dword [esp + 0x6c]
cmp dword [ecx], 0x5c3f3f5c
je 0x4a70a7
movzx edx, byte [ecx]
cmp dl, 0x5c
je 0x4a7079
cmp dl, 0x2f
jne 0x4a70b7
movzx edx, byte [ecx + 1]
cmp dl, 0x5c
je 0x4a7087
cmp dl, 0x2f
jne 0x4a70b7
cmp byte [ecx + 2], 0x3f
jne 0x4a70b7
movzx edx, byte [ecx + 3]
cmp dl, 0x5c
je 0x4a709b
cmp dl, 0x2f
jne 0x4a70b7
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.internal_filepathlite.IsAbs
movzx eax, byte [esp + 8]
test al, al
je 0x4a70d4
mov ecx, dword [esp + 0x70]
mov eax, ecx
jmp 0x4a7142
lea eax, [0x7ca390]
mov dword [esp], eax
call sym.sync._Mutex_.Lock
mov eax, dword [0x7ca39c]
test eax, eax
jne 0x4a711e
call sym.syscall.Getwd
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [0x7ca39c], eax
mov eax, dword [0x7e90a0]
test eax, eax
je 0x4a7118
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [0x7ca398]
mov dword [edi + 4], eax
mov dword [0x7ca398], ecx
mov eax, dword [0x7ca39c]
mov dword [esp + 0x54], eax
lea ecx, [0x7ca390]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x70]
lea eax, [ecx + eax + 1]
cmp eax, 0xf8
jl 0x4a7258
cmp ecx, 2
jl 0x4a71ad
mov edx, dword [esp + 0x6c]
movzx ebx, byte [edx]
cmp bl, 0x5c
je 0x4a7163
cmp bl, 0x2f
jne 0x4a71a7
movzx ebx, byte [edx + 1]
cmp bl, 0x5c
jne 0x4a7171
cmp ecx, 4
jmp 0x4a7179
cmp bl, 0x2f
jne 0x4a71a1
cmp ecx, 4
jl 0x4a7198
cmp byte [edx + 2], 0x2e
jne 0x4a7198
movzx ebx, byte [edx + 3]
cmp bl, 0x5c
je 0x4a718f
cmp bl, 0x2f
jne 0x4a7198
xor ebx, ebx
mov ebp, 1
jmp 0x4a71b5
mov ebx, 1
xor ebp, ebp
jmp 0x4a71b5
xor ebx, ebx
xor ebp, ebp
jmp 0x4a71b5
xor ebx, ebx
xor ebp, ebp
jmp 0x4a71b5
mov edx, dword [esp + 0x6c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x3c], eax
mov byte [esp + 0x1f], bl
test bl, bl
je 0x4a71ec
mov dword [esp + 0x28], 0x5c005c
mov dword [esp + 0x2c], 0x5c003f
mov dword [esp + 0x30], 0x4e0055
mov dword [esp + 0x34], 0x5c0043
mov ebp, 8
lea esi, [esp + 0x28]
jmp 0x4a7211
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a71f8
xor ebp, ebp
xor esi, esi
jmp 0x4a7211
mov dword [esp + 0x20], 0x5c005c
mov dword [esp + 0x24], 0x5c003f
mov ebp, 4
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x58], esi
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.syscall.UTF16FromString
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a7244
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x3c]
inc edx
jmp 0x4a726a
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
mov edx, ebx
mov dword [esp + 0x44], edx
lea eax, [0x5044e0]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
lea ebx, [edx + ecx]
mov dword [esp + 0x50], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call sym.runtime.makeslice
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x4a73c0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
cmp edx, ecx
jae 0x4a73b9
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov ebx, dword [esp + 0x44]
mov dword [esp + 4], ebx
lea ebp, [eax + edx*2]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0
call sym.syscall.GetFullPathName
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a7396
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
cmp ebp, ebx
jb 0x4a7268
mov esi, dword [esp + 0x38]
lea ecx, [ebx + esi]
mov edx, dword [esp + 0x50]
cmp ecx, edx
ja 0x4a73b4
movzx edi, byte [esp + 0x1f]
xchg edi, eax
test al, al
xchg edi, eax
je 0x4a7334
cmp ecx, 2
jb 0x4a73aa
lea edx, [ebp + esi - 2]
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, 4
lea ecx, [ebx + esi - 2]
mov edi, dword [esp + 0x64]
lea eax, [edi + edx]
jmp 0x4a733a
mov eax, dword [esp + 0x64]
mov ebp, edx
cmp ecx, esi
jg 0x4a7340
mov esi, ecx
mov edx, dword [esp + 0x58]
cmp eax, edx
je 0x4a7372
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], eax
mov dword [esp], eax
mov dword [esp + 4], edx
shl esi, 1
mov dword [esp + 8], esi
call sym.runtime.memmove
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call sym.syscall.UTF16ToString
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov eax, 2
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAcapU
mov eax, edx
call sym.runtime.panicIndex
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.os.addExtendedPrefix