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

Disassembly:
mov ecx, dword [0x7c4f4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x5d93a1
sub esp, 0x108
call sym.main.getCAROOT
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov edx, dword [esp + 0x10c]
mov dword [edx + 0x2c], eax
mov ebx, dword [0x7c5080]
test ebx, ebx
je 0x5d89ae
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebx, dword [edx + 0x28]
mov dword [edi + 4], ebx
mov dword [edx + 0x28], ecx
test eax, eax
jne 0x5d8a0b
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
lea eax, [0x5f3f60]
mov dword [esp + 0xfc], eax
lea ecx, [0x6677ec]
mov dword [esp + 0x100], ecx
lea ecx, [esp + 0xfc]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call sym.log.Fatalln
mov edx, dword [esp + 0x10c]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1ed
call sym.os.MkdirAll
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5d8af1
mov dword [esp + 0x94], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
lea eax, [0x61e7cd]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5d8aab
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xf8], eax
lea eax, [0x61971a]
mov dword [esp], eax
mov dword [esp + 4], 0xd
lea eax, [esp + 0xec]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.log.Fatalf
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call sym.main._mkcert_.loadCA
mov eax, dword [esp + 0x10c]
movzx ecx, byte [eax]
test cl, cl
jne 0x5d8f79
movzx ecx, byte [eax + 1]
test cl, cl
jne 0x5d8f6a
lea eax, [0x617abd]
mov dword [esp], eax
mov dword [esp + 4], 6
call sym.main.storeEnabled
movzx eax, byte [esp + 8]
test al, al
je 0x5d8b83
mov ecx, dword [esp + 0x10c]
movzx edx, byte [ecx + 0x3c]
test dl, dl
je 0x5d8b53
mov eax, 1
jmp 0x5d8b7e
mov edx, dword [ecx + 0x30]
mov dword [esp], edx
lea edi, [esp + 4]
xor eax, eax
call fcn.0046a9f3
call sym.crypto_x509._Certificate_.Verify
mov ecx, dword [esp + 0x44]
test ecx, ecx
setne cl
xor ecx, 1
mov eax, ecx
mov ecx, dword [esp + 0x10c]
xor eax, 1
jmp 0x5d8b8c
mov ecx, dword [esp + 0x10c]
xor eax, eax
mov byte [esp + 0x4e], al
test al, al
je 0x5d8c4e
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
lea eax, [0x5f3f60]
mov dword [esp + 0xbc], eax
lea ecx, [0x6677f4]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
lea ecx, [sym.main._mkcert_.Run.Println.func1]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe4], 1
mov dword [esp + 0xe8], 1
lea ecx, [esp + 0xbc]
mov dword [esp + 0xe0], ecx
mov ecx, dword [0x785b94]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xdc]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
lea eax, [0x61754e]
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.main.storeEnabled
movzx eax, byte [esp + 8]
test al, al
je 0x5d8ca3
movzx eax, byte [0x7c4e26]
test al, al
je 0x5d8c9f
mov eax, dword [0x785d8c]
test eax, eax
jne 0x5d8c86
xor eax, eax
jmp 0x5d8ca5
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call sym.main._mkcert_.checkNSS
movzx eax, byte [esp + 4]
xor eax, 1
jmp 0x5d8ca5
xor eax, eax
jmp 0x5d8ca5
xor eax, eax
mov byte [esp + 0x6f], al
test al, al
je 0x5d8d77
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov eax, dword [0x77f400]
mov ecx, dword [0x77f404]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
lea edi, [esp + 0xc4]
xor eax, eax
call fcn.0046a9fa
lea eax, [sym.main._mkcert_.Run.Printf.func2]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xcc], 0x3a
lea eax, [0x627031]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd4], 1
mov dword [esp + 0xd8], 1
lea eax, [esp + 0xb4]
mov dword [esp + 0xd0], eax
mov eax, dword [0x785b94]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea eax, [esp + 0xc4]
mov dword [esp + 0xc], eax
call sym.log._Logger_.output
lea eax, [0x61770b]
mov dword [esp], eax
mov dword [esp + 4], 4
call sym.main.storeEnabled
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x6f]
movzx edx, byte [esp + 0x4e]
or ecx, edx
mov byte [esp + 0x4e], cl
test al, al
je 0x5d8dd3
movzx eax, byte [0x7c4e24]
test al, al
jne 0x5d8db5
xor eax, eax
jmp 0x5d8dd5
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call sym.main._mkcert_.checkJava
movzx eax, byte [esp + 4]
xor eax, 1
movzx ecx, byte [esp + 0x4e]
jmp 0x5d8dd5
xor eax, eax
test al, al
je 0x5d8ea1
mov byte [esp + 0x6f], al
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
lea eax, [0x5f3f60]
mov dword [esp + 0xac], eax
lea ecx, [0x6677fc]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
lea ecx, [sym.main._mkcert_.Run.Println.func3]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe4], 1
mov dword [esp + 0xe8], 1
lea ecx, [esp + 0xac]
mov dword [esp + 0xe0], ecx
mov ecx, dword [0x785b94]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xdc]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
movzx eax, byte [esp + 0x6f]
movzx ecx, byte [esp + 0x4e]
or eax, ecx
test al, al
je 0x5d8f61
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea eax, [0x5f3f60]
mov dword [esp + 0xa4], eax
lea ecx, [0x667804]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
lea ecx, [sym.main._mkcert_.Run.Println.func4]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe4], 1
mov dword [esp + 0xe8], 1
lea ecx, [esp + 0xa4]
mov dword [esp + 0xe0], ecx
mov ecx, dword [0x785b94]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xdc]
mov dword [esp + 0xc], ecx
call sym.log._Logger_.output
mov eax, dword [esp + 0x114]
jmp 0x5d8f8c
mov dword [esp], eax
call sym.main._mkcert_.uninstall
add esp, 0x108
ret
mov dword [esp], eax
call sym.main._mkcert_.install
mov eax, dword [esp + 0x114]
test eax, eax
je 0x5d8fe3
mov ecx, dword [esp + 0x10c]
mov ebx, dword [ecx + 0x24]
test ebx, ebx
jne 0x5d8fd4
test eax, eax
je 0x5d8fc3
lea eax, [0x6258c8]
mov dword [esp], eax
mov dword [esp + 4], 0x30
call sym.regexp.MustCompile
mov eax, dword [esp + 8]
mov dword [esp + 0x8c], eax
xor ecx, ecx
jmp 0x5d8ff8
mov edx, dword [0x77ef68]
mov eax, dword [edx]
call eax
add esp, 0x108
ret
mov dword [esp], ecx
call sym.main._mkcert_.makeCertFromCSR
add esp, 0x108
ret
add esp, 0x108
ret
mov edx, dword [esp + 0x7c]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x114]
cmp edx, ecx
jle 0x5d9371
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x110]
lea edx, [eax + ecx*8]
mov dword [esp + 0x104], edx
mov ebx, dword [edx]
mov dword [esp + 0x90], ebx
mov ebp, dword [edx + 4]
mov dword [esp + 0x78], ebp
mov dword [esp], ebx
mov dword [esp + 4], ebp
call sym.net.parseIP
movzx eax, byte [esp + 0x18]
lea edi, [esp + 0x5f]
lea esi, [esp + 8]
call fcn.0046aee8
lea edi, [esp + 0x4f]
lea esi, [esp + 0x5f]
call fcn.0046aee8
test al, al
je 0x5d9061
lea eax, [esp + 0x4f]
jmp 0x5d9063
xor eax, eax
test eax, eax
jne 0x5d8fea
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x98], ecx
lea edx, [esp + 0x98]
mov dword [esp], edx
call sym.net_mail._addrParser_.parseSingleAddress
mov eax, dword [esp + 8]
test eax, eax
je 0x5d90cb
mov edx, dword [esp + 0x78]
xor eax, eax
jmp 0x5d9101
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x78]
cmp ecx, edx
je 0x5d90de
xor eax, eax
jmp 0x5d9101
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x78]
test al, al
jne 0x5d8fea
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.net_url.Parse
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5d913a
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5d913a
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x5d8fea
mov eax, dword [0x77ef80]
nop
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 1
call sym.golang.org_x_net_idna._Profile_.process
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x5d9246
mov dword [esp + 0x84], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5d91f5
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xf8], eax
lea eax, [0x626a50]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea ecx, [esp + 0xec]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.log.Fatalf
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x110]
lea ebp, [ebx + eax*8 + 4]
mov dword [ebp], edx
mov ebp, dword [0x7c5080]
test ebp, ebp
jne 0x5d926b
mov ebp, dword [esp + 0x104]
jmp 0x5d927f
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebp, dword [esp + 0x104]
mov esi, dword [ebp]
mov dword [edi + 4], esi
mov dword [ebp], ecx
nop
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call sym.regexp._Regexp_.doExecute
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x5d8fea
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
lea eax, [0x6262b7]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea edx, [esp + 0xfc]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.log.Fatalf
jmp 0x5d8fea
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x118]
mov dword [esp + 0xc], eax
call sym.main._mkcert_.makeCert
add esp, 0x108
ret
call sym.runtime.morestack_noctxt
jmp sym.main._mkcert_.Run