Function at 0x10009880
Capabilities:
Check if file exists
Get file attributes
Get session user name
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2814
call fcn.1001c460
mov eax, dword [0x1003ccc8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2814], ecx
mov eax, dword [ebp - 0x2814]
cmp dword [eax], 0
jne 0x100098af
xor eax, eax
jmp 0x10009d93
push 0x1000
lea ecx, [ebp - 0x2410]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x100099af
push str..local
lea edx, [ebp - 0x2410]
push edx
call fcn.1000b980
add esp, 8
lea eax, [ebp - 0x2410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100099af
push 0x1000
lea ecx, [ebp - 0x2410]
push ecx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x1000994c
push str.Debugging_Tools_for_Windowsdbghelp.dll
lea edx, [ebp - 0x2410]
push edx
call fcn.1000b980
add esp, 8
lea eax, [ebp - 0x2410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000994c
lea ecx, [ebp - 0x2410]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 4], 0
jne 0x100099af
push 0x1000
lea ecx, [ebp - 0x2410]
push ecx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x100099af
push str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea edx, [ebp - 0x2410]
push edx
call fcn.1000b980
add esp, 8
lea eax, [ebp - 0x2410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100099af
lea ecx, [ebp - 0x2410]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 4], 0
jne 0x100099cf
push 0x10036288
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x2814]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2814]
cmp dword [edx + 4], 0
jne 0x100099e2
xor eax, eax
jmp 0x10009d93
push str.SymInitialize
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x2c], eax
push str.SymCleanup
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x10], eax
push str.StackWalk64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x38], eax
push str.SymGetOptions
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x24], eax
push str.SymSetOptions
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x34], eax
push str.SymFunctionTableAccess64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x14], eax
push str.SymGetLineFromAddr64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x18], eax
push str.SymGetModuleBase64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x1c], eax
push str.SymGetModuleInfo64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x20], eax
push str.SymGetSymFromAddr64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x28], eax
push str.UnDecorateSymbolName
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x3c], eax
push str.SymLoadModule64
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x30], eax
push str.SymGetSearchPath
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 0x10], 0
je 0x10009bec
mov ecx, dword [ebp - 0x2814]
cmp dword [ecx + 0x14], 0
je 0x10009bec
mov edx, dword [ebp - 0x2814]
cmp dword [edx + 0x1c], 0
je 0x10009bec
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 0x20], 0
je 0x10009bec
mov ecx, dword [ebp - 0x2814]
cmp dword [ecx + 0x24], 0
je 0x10009bec
mov edx, dword [ebp - 0x2814]
cmp dword [edx + 0x28], 0
je 0x10009bec
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 0x2c], 0
je 0x10009bec
mov ecx, dword [ebp - 0x2814]
cmp dword [ecx + 0x34], 0
je 0x10009bec
mov edx, dword [ebp - 0x2814]
cmp dword [edx + 0x38], 0
je 0x10009bec
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 0x3c], 0
je 0x10009bec
mov ecx, dword [ebp - 0x2814]
cmp dword [ecx + 0x30], 0
jne 0x10009c1d
mov edx, dword [ebp - 0x2814]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x2814]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2814]
mov dword [edx + 0x10], 0
xor eax, eax
jmp 0x10009d93
cmp dword [ebp + 8], 0
je 0x10009c38
mov eax, dword [ebp + 8]
push eax
call fcn.1001aec7
add esp, 4
mov ecx, dword [ebp - 0x2814]
mov dword [ecx + 0xc], eax
push 0
mov edx, dword [ebp - 0x2814]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2814]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 0x2c]
call ecx
test eax, eax
jne 0x10009c84
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SymInitialize
mov edx, dword [ebp - 0x2814]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2814]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x2814]
mov edx, dword [ecx + 0x24]
call edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
or ecx, 0x200
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax + 0x34]
call ecx
mov dword [ebp - 4], eax
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea edx, [ebp - 0x40f]
push edx
call fcn.1001b720
add esp, 0xc
mov eax, dword [ebp - 0x2814]
cmp dword [eax + 0x40], 0
je 0x10009d30
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x2814]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x2814]
mov edx, dword [ecx + 0x40]
call edx
test eax, eax
jne 0x10009d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SymGetSearchPath
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2814]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov byte [ebp - 0x2810], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x280f]
push ecx
call fcn.1001b720
add esp, 0xc
mov dword [ebp - 8], 0x400
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x2810]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x2814]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x2814]
mov ecx, dword [eax]
mov edx, dword [edx]
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10018f71
mov esp, ebp
pop ebp
ret 4