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

Disassembly:
mov ecx, dword [0x674284]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xa8]
cmp eax, dword [ecx + 8]
jbe 0x5122df
sub esp, 0x128
mov eax, 0
mov dword [esp + 0x124], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov eax, dword [esp + 0x12c]
mov dword [esp], eax
call sym.main.gofmtFile
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x511ded
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], edx
call sym.os.tempDir
lea eax, [0x546e18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x11
call sym.os.MkdirTemp
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x511dd4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
lea edx, [sym.main.typecheck.func1.deferwrap1]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd0], eax
lea edx, [esp + 0xcc]
mov dword [esp + 0x124], edx
mov byte [esp + 0x27], 1
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc8], 5
lea edx, [0x54444f]
mov dword [esp + 0xc4], edx
lea ebx, [esp + 0xbc]
mov dword [esp], ebx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call sym.path_filepath.join
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x180
call sym.os.WriteFile
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x511dab
lea eax, [0x544611]
mov dword [esp], eax
mov dword [esp + 4], 6
call sym.runtime.gogetenv
mov eax, dword [esp + 0xc]
test eax, eax
je 0x511a1a
mov ecx, dword [esp + 8]
jmp 0x511a26
mov ecx, dword [0x635990]
mov eax, dword [0x635994]
test eax, eax
jne 0x511a37
mov edx, 2
lea ecx, [0x544069]
jmp 0x511ab4
mov dword [esp + 0x68], ecx
lea edi, [esp + 0xa4]
mov edx, eax
xor eax, eax
call fcn.004695ea
mov dword [esp + 0xa8], edx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb0], 3
lea ecx, [0x544118]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb8], 2
lea ecx, [0x544069]
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0xa4]
mov dword [esp], ecx
mov dword [esp + 4], 3
mov dword [esp + 8], 3
call sym.path_filepath.join
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x88], ecx
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.004695e2
mov dword [esp + 0xdc], 4
lea ecx, [0x54429b]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe4], 3
lea ecx, [0x54411b]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xec], 7
lea ecx, [0x544832]
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xf4], ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xfc], 7
lea ebp, [0x544839]
mov dword [esp + 0xf8], ebp
mov dword [esp + 0x104], ecx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x10c], 5
lea ebp, [0x54444f]
mov dword [esp + 0x108], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp], ebp
mov dword [esp + 4], edx
lea edx, [esp + 0xd8]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 7
mov dword [esp + 0x10], 7
call sym.os_exec.Command
mov ecx, dword [0x6357d8]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x511bcd
mov eax, dword [0x635808]
lea ecx, [0x576960]
mov dword [edx + 0x38], ecx
mov ecx, dword [0x674338]
test ecx, ecx
je 0x511bca
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [edx + 0x3c]
mov dword [edi + 4], ecx
mov dword [edx + 0x3c], eax
mov dword [esp], edx
call sym.os_exec._Cmd_.Run
mov eax, dword [esp + 4]
test eax, eax
jne 0x511d82
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov dword [esp + 0xa0], 0xf
lea eax, [0x546636]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call sym.path_filepath.join
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.os.ReadFile
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x511d59
mov eax, dword [esp + 8]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], edx
lea ebx, [0x5362e0]
mov dword [esp], ebx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov dword [eax + 0x18], 1
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
lea ecx, [0x544617]
mov dword [esp + 4], ecx
mov dword [esp + 8], 6
lea ecx, [0x5241c0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
call sym.go_parser.ParseFile
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x511d30
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x120], ebp
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x64], ebx
xor eax, eax
jmp 0x511e07
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x124]
mov eax, dword [edx]
call eax
add esp, 0x128
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x124]
mov eax, dword [edx]
call eax
add esp, 0x128
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x124]
mov eax, dword [edx]
call eax
add esp, 0x128
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x124]
mov eax, dword [edx]
call eax
add esp, 0x128
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
add esp, 0x128
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
add esp, 0x128
ret
inc eax
cmp eax, ebx
jge 0x511ebf
lea esi, [ebp + eax*8]
lea edi, [0x57734c]
cmp dword [esi], edi
jne 0x511e22
mov esi, dword [esi + 4]
jmp 0x511e27
mov esi, 0
jne 0x511e06
mov dword [esp + 0x60], eax
mov dword [esp + 0x8c], esi
mov ecx, dword [esi + 8]
cmp dword [ecx + 8], 7
jge 0x511e41
xor ecx, ecx
jmp 0x511e81
mov eax, dword [ecx + 4]
mov dword [esp], eax
lea eax, [0x544840]
mov dword [esp + 4], eax
mov dword [esp + 8], 7
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x120]
mov esi, dword [esp + 0x8c]
lea edi, [0x57734c]
mov ecx, eax
mov eax, dword [esp + 0x60]
test cl, cl
je 0x511e06
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [esp + 0x11c], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
xor edi, edi
mov dword [esp + 0x58], edi
xor edi, edi
mov dword [esp + 0x44], edi
xor edi, edi
mov dword [esp + 0x80], edi
xor edi, edi
mov dword [esp + 0x40], edi
lea edi, [0x57734c]
jmp 0x511f2d
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x124]
mov eax, dword [edx]
call eax
add esp, 0x128
ret
mov dword [edi], eax
mov eax, dword [esp + 0x58]
inc eax
mov ecx, dword [esp + 0x11c]
mov esi, dword [esp + 0x8c]
lea edi, [0x57734c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x120]
mov edi, dword [esp + 0x58]
cmp edi, edx
jge 0x512034
mov ebp, dword [ecx + edi*4]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x511f46
mov ebx, dword [ebx + 4]
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.main.gofmt
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x54], edx
nop
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x544847]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 7
lea ecx, [0x54406f]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
call sym.strings.Replace
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
cmp edx, ebx
jb 0x511fbc
mov ebp, dword [esp + 0x80]
jmp 0x512007
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x527f00]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, edx
mov ebp, eax
mov edx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
lea esi, [ebp + ebx*8 - 4]
mov dword [esi], ecx
mov esi, dword [0x674338]
lea edi, [ebp + ebx*8 - 8]
test esi, esi
je 0x511eec
mov ecx, edi
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov esi, dword [ecx]
mov dword [edi + 4], esi
mov edi, ecx
jmp 0x511eec
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0xc]
mov edi, dword [edx + 4]
mov dword [esp + 0x118], edi
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
xor ecx, ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x7c], ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
xor ecx, ecx
jmp 0x512099
mov dword [edi], eax
mov eax, dword [esp + 0x58]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x118]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x120]
cmp ecx, edx
jge 0x51219a
mov dword [esp + 0x58], ecx
mov ebp, dword [edi + ecx*4]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x5120b2
mov ebx, dword [ebx + 4]
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.main.gofmt
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x54], edx
nop
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x544847]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 7
lea ecx, [0x54406f]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
call sym.strings.Replace
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x54]
cmp edx, ebx
jb 0x512125
mov ebp, dword [esp + 0x7c]
jmp 0x51216d
mov dword [esp + 0x30], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x527f00]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, edx
mov ebp, eax
mov edx, ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
lea esi, [ebp + ebx*8 - 4]
mov dword [esi], ecx
mov esi, dword [0x674338]
lea edi, [ebp + ebx*8 - 8]
test esi, esi
je 0x512063
mov ecx, edi
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov esi, dword [ecx]
mov dword [edi + 4], esi
mov edi, ecx
jmp 0x512063
mov edx, dword [esi + 8]
mov ecx, dword [edx + 8]
cmp ecx, 7
jb 0x5122c8
mov dword [esp + 0x5c], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
call sym.main.joinFunc
mov eax, dword [esp + 0x130]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x110], ecx
mov edx, dword [esp + 0x5c]
add edx, 0xfffffff9
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 7
mov ebp, dword [esp + 0x114]
add edx, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x114], esi
mov dword [esp], 0
lea edi, [0x54406f]
mov dword [esp + 4], edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [0x528e80]
mov dword [esp], edx
mov ebx, dword [esp + 0x110]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.runtime.mapassign_faststr
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [0x674338]
test ecx, ecx
jne 0x512299
mov ebx, dword [esp + 0x114]
jmp 0x5122ac
call sym.runtime.gcWriteBarrier2
mov ebx, dword [esp + 0x114]
mov dword [edi], ebx
mov ebp, dword [eax]
mov dword [edi + 4], ebp
mov dword [eax], ebx
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x120]
lea edi, [0x57734c]
jmp 0x511e06
mov eax, 7
call sym.runtime.panicSliceB
nop
call sym.runtime.deferreturn
add esp, 0x128
ret
call sym.runtime.morestack_noctxt
jmp sym.main.typecheck.func1