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

Disassembly:
mov ecx, dword [0x67bf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x504800
sub esp, 0x94
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x50405d
mov edx, dword [esp + 0xa4]
cmp word [edx], 0x7069
je 0x504093
jmp 0x504763
cmp ecx, 3
jne 0x5040d5
mov edx, dword [esp + 0xa4]
cmp byte [edx], 0x69
jg 0x5040b2
movzx ebx, word [edx]
cmp bx, 0x7069
jne 0x504083
cmp byte [edx + 2], 0x34
je 0x504093
cmp bx, 0x7069
jne 0x504763
cmp byte [edx + 2], 0x36
jne 0x504763
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x5040a7
mov eax, dword [esp + 0xac]
jmp 0x5040ab
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x5041d1
cmp word [edx], 0x6374
jne 0x5040bf
cmp byte [edx + 2], 0x70
je 0x504113
cmp word [edx], 0x6475
jne 0x504763
cmp byte [edx + 2], 0x70
je 0x504113
jmp 0x504763
cmp ecx, 4
jne 0x50475c
mov edx, dword [esp + 0xa4]
cmp byte [edx], 0x74
jg 0x5040ff
cmp dword [edx], 0x34706374
je 0x504113
cmp dword [edx], 0x36706374
je 0x504113
jmp 0x504763
cmp dword [edx], 0x34706475
je 0x504113
cmp dword [edx], 0x36706475
jne 0x504763
mov ebx, dword [esp + 0xb0]
test ebx, ebx
jne 0x504129
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x5041c9
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sym.net.SplitHostPort
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x50471e
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xa0]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call sym.net._Resolver_.LookupPort
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5046e0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x50]
mov esi, ebp
mov ebp, ebx
mov ebx, eax
mov eax, esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea esi, [sym.net._Resolver_.internetAddrList.func1]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebp
test ebx, ebx
jne 0x504469
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.0046723b
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x504232
cmp word [edx], 0x7069
je 0x50426b
jmp 0x5047af
mov dword [esp + 0x34], ebp
cmp ecx, 3
jne 0x5042f3
cmp byte [edx], 0x69
jg 0x5042cc
movzx eax, word [edx]
cmp ax, 0x7069
jne 0x50425b
cmp byte [edx + 2], 0x34
je 0x50426b
cmp ax, 0x7069
jne 0x5047af
cmp byte [edx + 2], 0x36
jne 0x5047af
lea eax, [0x53a2a0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x5042a0
call sym.runtime.gcWriteBarrier1
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x5042be
call sym.runtime.gcWriteBarrier1
mov dword [edi], edx
mov dword [eax + 0xc], edx
lea ecx, [0x585af4]
jmp 0x5043f1
cmp word [edx], 0x6374
jne 0x5042d9
cmp byte [edx + 2], 0x70
je 0x504315
cmp word [edx], 0x6475
jne 0x5047af
cmp byte [edx + 2], 0x70
je 0x50438e
jmp 0x5047af
cmp ecx, 4
jne 0x5047af
cmp byte [edx], 0x74
jg 0x50437a
cmp dword [edx], 0x34706374
je 0x504315
cmp dword [edx], 0x36706374
jne 0x5047af
lea eax, [0x53dd80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x50434a
call sym.runtime.gcWriteBarrier1
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x50436f
call sym.runtime.gcWriteBarrier1
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x585adc]
jmp 0x5043f1
cmp dword [edx], 0x34706475
je 0x50438e
cmp dword [edx], 0x36706475
jne 0x5047af
lea eax, [0x53dd00]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x5043c3
call sym.runtime.gcWriteBarrier1
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x67c100]
test ecx, ecx
je 0x5043e8
call sym.runtime.gcWriteBarrier1
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x585ac4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
lea edx, [0x52fd40]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x67c100]
test ecx, ecx
jne 0x504421
mov ecx, dword [esp + 0x48]
jmp 0x50442c
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x94
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x98]
mov dword [esp], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call sym.net._Resolver_.lookupIPAddr
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x5046a2
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, 1
je 0x5044cb
xor eax, eax
jmp 0x50451a
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [0x6515f0]
mov esi, dword [0x6515f4]
mov edi, dword [0x6515f8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call sym.net.IP.Equal
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
test al, al
je 0x5045f2
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046723b
lea ecx, [edx + 1]
mov edx, dword [0x656eb8]
mov ebp, dword [0x656ebc]
mov eax, dword [0x656ec0]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x504592
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x53a2a0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [0x67c100]
lea ebp, [ecx + ecx*4]
lea edi, [ebx + ebp*4 - 0x14]
test eax, eax
je 0x5045e0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edi
lea eax, [0x53a2a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x80]
call fcn.0046771e
mov ecx, edx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x50461b
mov ebp, dword [esp + 0xa4]
lea esi, [ebp + eax - 1]
cmp byte [esi], 0x34
jne 0x504617
test eax, eax
lea esi, [0x55fa68]
jmp 0x504627
test eax, eax
jmp 0x504622
mov ebp, dword [esp + 0xa4]
mov esi, 0
je 0x504638
lea eax, [ebp + eax - 1]
cmp byte [eax], 0x36
jne 0x504638
lea esi, [0x55fa6c]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call sym.net.filterAddrList
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea ecx, [0x5857ec]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x94
ret
mov dword [esp], 0
lea eax, [0x55662e]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5318c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.gopanic
nop
call sym.runtime.morestack_noctxt
jmp sym.net._Resolver_.internetAddrList