Function at 0x438cb0
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.0045a410
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [esi], 0
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x2810], eax
je 0x43902e
push 0x1000
lea ecx, [ebp - 0x280c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x438dd0
push 0x4f52a8
lea edx, [ebp - 0x280c]
push 0x1000
push edx
call fcn.004574c5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea eax, [ebp - 0x280c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x438dd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x1000
lea ecx, [ebp - 0x280c]
push ecx
push str.ProgramFiles
call ebx
test eax, eax
je 0x438d7c
push str.Debugging_Tools_for_Windowsdbghelp.dll
lea edx, [ebp - 0x280c]
push 0x1000
push edx
call fcn.004574c5
add esp, 0xc
lea eax, [ebp - 0x280c]
push eax
call edi
cmp eax, 0xffffffff
je 0x438d7c
lea ecx, [ebp - 0x280c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
jne 0x438dd0
push 0x1000
lea edx, [ebp - 0x280c]
push edx
push str.ProgramFiles
call ebx
test eax, eax
je 0x438dd0
push str.Debugging_Tools_for_Windows_64_Bitdbghelp.dll
lea eax, [ebp - 0x280c]
push 0x1000
push eax
call fcn.004574c5
add esp, 0xc
lea ecx, [ebp - 0x280c]
push ecx
call edi
cmp eax, 0xffffffff
je 0x438dd0
lea edx, [ebp - 0x280c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x438de5
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x43902e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
push str.SymCleanup
push eax
call edi
mov ecx, dword [esi + 4]
push str.StackWalk64
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.SymGetOptions
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.SymSetOptions
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymFunctionTableAccess64
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi + 4]
push str.SymGetLineFromAddr64
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.SymGetModuleBase64
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymGetModuleInfo64
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 4]
push str.SymGetSymFromAddr64
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.UnDecorateSymbolName
push eax
call edi
mov ecx, dword [esi + 4]
push str.SymLoadModule64
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 4]
push str.SymGetSearchPath
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x40], eax
cmp dword [esi + 0x10], ebx
je 0x43901e
cmp dword [esi + 0x14], ebx
je 0x43901e
cmp dword [esi + 0x1c], ebx
je 0x43901e
cmp dword [esi + 0x20], ebx
je 0x43901e
cmp dword [esi + 0x24], ebx
je 0x43901e
cmp dword [esi + 0x28], ebx
je 0x43901e
cmp dword [esi + 0x2c], ebx
je 0x43901e
cmp dword [esi + 0x34], ebx
je 0x43901e
cmp dword [esi + 0x38], ebx
je 0x43901e
cmp dword [esi + 0x3c], ebx
je 0x43901e
cmp dword [esi + 0x30], ebx
je 0x43901e
mov eax, dword [ebp - 0x2810]
cmp eax, ebx
je 0x438f22
push eax
call fcn.00457473
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x2c]
push ebx
push eax
push ecx
call edx
test eax, eax
jne 0x438f4d
mov eax, dword [esi]
mov edi, dword [eax]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
push eax
push str.SymInitialize
call edx
mov eax, dword [esi + 0x24]
call eax
mov ecx, dword [esi + 0x34]
or eax, 0x210
push eax
call ecx
push 0x3ff
lea edx, [ebp - 0x80b]
push 0
push edx
mov ebx, eax
mov byte [ebp - 0x80c], 0
call fcn.00457de0
mov eax, dword [esi + 0x40]
add esp, 0xc
test eax, eax
je 0x438fb4
mov edx, dword [esi + 8]
push 0x400
lea ecx, [ebp - 0x80c]
push ecx
push edx
call eax
test eax, eax
jne 0x438fb4
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.00457de0
add esp, 0xc
lea ecx, [ebp - 0x2814]
push ecx
lea edx, [ebp - 0x40c]
push edx
mov dword [ebp - 0x2814], 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 - 0x80c]
push edx
call eax
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00453be1
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.00453be1
mov esp, ebp
pop ebp
ret 4