Function at 0x10020ee0
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, 0x1814
call fcn.1002dc90
mov eax, dword [0x10069700]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [esi], 0
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x1810], eax
je 0x10021289
push 0xfff
lea ecx, [ebp - 0x140b]
push 0
push ecx
mov byte [ebp - 0x140c], 0
call fcn.1002d5e0
add esp, 0xc
push 0x1000
lea edx, [ebp - 0x140c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1002101d
push str..local
lea eax, [ebp - 0x140c]
push 0x1000
push eax
call fcn.1002a466
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
lea ecx, [ebp - 0x140c]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x1002101d
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x1000
lea edx, [ebp - 0x140c]
push edx
push str.ProgramFiles
call ebx
test eax, eax
je 0x10020fc9
push str.Debugging_Tools_for_Windowsdbghelp.dll
lea eax, [ebp - 0x140c]
push 0x1000
push eax
call fcn.1002a466
add esp, 0xc
lea ecx, [ebp - 0x140c]
push ecx
call edi
cmp eax, 0xffffffff
je 0x10020fc9
lea edx, [ebp - 0x140c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
jne 0x1002101d
push 0x1000
lea eax, [ebp - 0x140c]
push eax
push str.ProgramFiles
call ebx
test eax, eax
je 0x1002101d
push str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea ecx, [ebp - 0x140c]
push 0x1000
push ecx
call fcn.1002a466
add esp, 0xc
lea edx, [ebp - 0x140c]
push edx
call edi
cmp eax, 0xffffffff
je 0x1002101d
lea eax, [ebp - 0x140c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x10021032
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10021289
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymCleanup
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 4]
push str.StackWalk64
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
push str.SymGetOptions
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymSetOptions
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 4]
push str.SymFunctionTableAccess64
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.SymGetLineFromAddr64
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymGetModuleBase64
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.SymGetModuleInfo64
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.SymGetSymFromAddr64
push eax
call edi
mov ecx, dword [esi + 4]
push str.UnDecorateSymbolName
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi + 4]
push str.SymLoadModule64
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push str.SymGetSearchPath
push eax
call edi
mov ecx, dword [esi + 4]
push str.MiniDumpWriteDump
push ecx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
cmp dword [esi + 0x10], ebx
je 0x10021279
cmp dword [esi + 0x14], ebx
je 0x10021279
cmp dword [esi + 0x1c], ebx
je 0x10021279
cmp dword [esi + 0x20], ebx
je 0x10021279
cmp dword [esi + 0x24], ebx
je 0x10021279
cmp dword [esi + 0x28], ebx
je 0x10021279
cmp dword [esi + 0x2c], ebx
je 0x10021279
cmp dword [esi + 0x34], ebx
je 0x10021279
cmp dword [esi + 0x38], ebx
je 0x10021279
cmp dword [esi + 0x3c], ebx
je 0x10021279
cmp dword [esi + 0x30], ebx
je 0x10021279
mov eax, dword [ebp - 0x1810]
cmp eax, ebx
je 0x1002117d
push eax
call fcn.1002a414
add esp, 4
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x2c]
push ebx
push edx
push eax
call ecx
test eax, eax
jne 0x100211a8
mov edx, dword [esi]
mov edi, dword [edx]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0x10]
push str.SymInitialize
call eax
mov ecx, dword [esi + 0x24]
call ecx
mov edx, dword [esi + 0x34]
or eax, 0x210
push eax
call edx
push 0x3ff
mov ebx, eax
lea eax, [ebp - 0x180b]
push 0
push eax
mov byte [ebp - 0x180c], 0
call fcn.1002d5e0
mov eax, dword [esi + 0x40]
add esp, 0xc
test eax, eax
je 0x1002120f
mov edx, dword [esi + 8]
push 0x400
lea ecx, [ebp - 0x180c]
push ecx
push edx
call eax
test eax, eax
jne 0x1002120f
mov eax, dword [esi]
mov edi, dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
push eax
push str.SymGetSearchPath
call edx
push 0x3ff
lea eax, [ebp - 0x40b]
push 0
push eax
mov byte [ebp - 0x40c], 0
call fcn.1002d5e0
add esp, 0xc
lea ecx, [ebp - 0x1814]
push ecx
lea edx, [ebp - 0x40c]
push edx
mov dword [ebp - 0x1814], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x40c]
push edx
push ebx
lea edx, [ebp - 0x180c]
push edx
call eax
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100282cc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100282cc
mov esp, ebp
pop ebp
ret 4