Function at 0x100154d0
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, 0x180c
call fcn.10022c40
push esi
push edi
push ecx
lea edi, [ebp - 0x180c]
mov ecx, 0x603
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x180c], ecx
mov eax, dword [ebp - 0x180c]
cmp dword [eax], 0
jne 0x1001550b
xor eax, eax
jmp 0x10015b1b
mov esi, esp
push 0x1000
lea ecx, [ebp - 0x1804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10015653
push str..local
lea edx, [ebp - 0x1804]
push edx
call fcn.10022260
add esp, 8
mov esi, esp
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.10021b10
cmp eax, 0xffffffff
jne 0x10015653
mov esi, esp
push 0x1000
lea ecx, [ebp - 0x1804]
push ecx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x100155d5
push str.Debugging_Tools_for_Windowsdbghelp.dll
lea edx, [ebp - 0x1804]
push edx
call fcn.10022260
add esp, 8
mov esi, esp
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.10021b10
cmp eax, 0xffffffff
je 0x100155d5
mov esi, esp
lea ecx, [ebp - 0x1804]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 4], 0
jne 0x10015653
mov esi, esp
push 0x1000
lea ecx, [ebp - 0x1804]
push ecx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.10021b10
test eax, eax
jbe 0x10015653
push str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea edx, [ebp - 0x1804]
push edx
call fcn.10022260
add esp, 8
mov esi, esp
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.10021b10
cmp eax, 0xffffffff
je 0x10015653
mov esi, esp
lea ecx, [ebp - 0x1804]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 4], 0
jne 0x1001567c
mov esi, esp
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x180c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x180c]
cmp dword [edx + 4], 0
jne 0x1001568f
xor eax, eax
jmp 0x10015b1b
mov esi, esp
push str.SymInitialize
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x2c], eax
mov esi, esp
push str.SymCleanup
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x10], eax
mov esi, esp
push str.StackWalk64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x38], eax
mov esi, esp
push str.SymGetOptions
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x24], eax
mov esi, esp
push str.SymSetOptions
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x34], eax
mov esi, esp
push str.SymFunctionTableAccess64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x14], eax
mov esi, esp
push str.SymGetLineFromAddr64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x18], eax
mov esi, esp
push str.SymGetModuleBase64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x1c], eax
mov esi, esp
push str.SymGetModuleInfo64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x20], eax
mov esi, esp
push str.SymGetSymFromAddr64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x28], eax
mov esi, esp
push str.UnDecorateSymbolName
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x3c], eax
mov esi, esp
push str.SymLoadModule64
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x30], eax
mov esi, esp
push str.SymGetSearchPath
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 0x10], 0
je 0x1001590e
mov ecx, dword [ebp - 0x180c]
cmp dword [ecx + 0x14], 0
je 0x1001590e
mov edx, dword [ebp - 0x180c]
cmp dword [edx + 0x1c], 0
je 0x1001590e
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 0x20], 0
je 0x1001590e
mov ecx, dword [ebp - 0x180c]
cmp dword [ecx + 0x24], 0
je 0x1001590e
mov edx, dword [ebp - 0x180c]
cmp dword [edx + 0x28], 0
je 0x1001590e
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 0x2c], 0
je 0x1001590e
mov ecx, dword [ebp - 0x180c]
cmp dword [ecx + 0x34], 0
je 0x1001590e
mov edx, dword [ebp - 0x180c]
cmp dword [edx + 0x38], 0
je 0x1001590e
mov eax, dword [ebp - 0x180c]
cmp dword [eax + 0x3c], 0
je 0x1001590e
mov ecx, dword [ebp - 0x180c]
cmp dword [ecx + 0x30], 0
jne 0x10015948
mov esi, esp
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x180c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x180c]
mov dword [edx + 0x10], 0
xor eax, eax
jmp 0x10015b1b
cmp dword [ebp + 8], 0
je 0x10015963
mov eax, dword [ebp + 8]
push eax
call fcn.100269f0
add esp, 4
mov ecx, dword [ebp - 0x180c]
mov dword [ecx + 0xc], eax
mov esi, esp
push 0
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x180c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x180c]
call dword [eax + 0x2c]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x100159c6
mov esi, esp
push 0
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esp
call fcn.10021b10
push eax
push str.SymInitialize
mov ecx, dword [ebp - 0x180c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call fcn.10021b10
mov eax, dword [ebp - 0x180c]
mov esi, esp
call dword [eax + 0x24]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x404]
or ecx, 0x10
mov dword [ebp - 0x404], ecx
mov edx, dword [ebp - 0x404]
or dh, 2
mov dword [ebp - 0x404], edx
mov esi, esp
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x180c]
call dword [ecx + 0x34]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0x180c]
cmp dword [edx + 0x40], 0
je 0x10015aa3
mov esi, esp
push 0x400
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x180c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x180c]
call dword [eax + 0x40]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x10015aa3
mov esi, esp
push 0
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esp
call fcn.10021b10
push eax
push str.SymGetSearchPath
mov ecx, dword [ebp - 0x180c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call fcn.10021b10
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1808], 0x400
mov esi, esp
lea eax, [ebp - 0x1808]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp - 0x404]
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x180c]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x180c]
mov edx, dword [eax]
mov eax, dword [edx]
call dword [eax + 4]
cmp esi, esp
call fcn.10021b10
mov eax, 1
pop edi
pop esi
add esp, 0x180c
cmp ebp, esp
call fcn.10021b10
mov esp, ebp
pop ebp
ret 4