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

Disassembly:
mov ecx, dword [0x674284]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x507c00
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x64], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [sym.os_exec._Cmd_.awaitGoroutines.func1]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x23], 1
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x507b60
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x507a33
mov edx, dword [eax + 0x6c]
mov ebx, dword [eax + 0x70]
test edx, edx
sete dl
test ebx, ebx
sete bl
and ebx, edx
test bl, bl
jne 0x507b19
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.selectnbrecv
movzx eax, byte [esp + 8]
test al, al
jne 0x507af8
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x6c]
mov edx, dword [eax + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.time.NewTimer
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x98]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
je 0x507ad7
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x2c], edx
xor ebx, ebx
jmp 0x507ba8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call sym.runtime.chanrecv1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x30], ebx
lea eax, [ecx + ebx*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x30]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
cmp ebx, edx
jl 0x507b81
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call sym.runtime.chanrecv1
mov eax, dword [0x630cb0]
mov ecx, dword [0x630cb4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
call sym.runtime.morestack_noctxt
jmp sym.os_exec._Cmd_.awaitGoroutines