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

Disassembly:
mov ecx, dword [0x6e06e0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x509a91
sub esp, 0x54
mov eax, dword [esp + 0x58]
test byte [eax], al
lea ecx, [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0x58]
test eax, eax
je 0x509a3b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x509a3b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5099e5
lea eax, [0x568f00]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
lea ecx, [0x5565a0]
mov dword [esp], ecx
mov dword [esp + 4], 0
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x34]
xor eax, eax
call fcn.00466ec8
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [0x6e0840]
test eax, eax
je 0x509955
lea eax, [0x568f00]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
lea ecx, [esp + 0x34]
mov dword [esp + 8], ecx
call sym.runtime.wbMove
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x34]
call fcn.00467390
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
call sym.runtime.chansend1
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
call sym.runtime.chanrecv2
movzx eax, byte [esp + 8]
test al, al
je 0x5099d1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x54
ret
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
lea eax, [0x585e57]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
lea eax, [0x587177]
mov dword [esp], eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_StackExchange_wmi._SWbemServices_.Query