Function at 0x469180
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
cmp dword [edi + 4], 0
je 0x469520
cmp dword [edi + 0x10], 0
je 0x4691cd
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
xor esi, esi
test byte [edi + 0x18], 0x10
je 0x4694f5
push 0x1000
call fcn.00470e7c
mov esi, eax
add esp, 4
test esi, esi
jne 0x46920b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x469237
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9198
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
lea eax, [esp + 0x260]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x469292
lea eax, [esp + 0x260]
mov byte [esp + 0x65f], 0
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x400
lea eax, [esp + 0x264]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x469344
lea ecx, [esp + 0x260]
mov byte [esp + 0x65f], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4692c1
sub ecx, edx
lea eax, [esp + ecx + 0x25f]
lea ecx, [esp + 0x260]
cmp eax, ecx
jb 0x469302
nop dword [eax]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4692ff
cmp cl, 0x2f
je 0x4692ff
cmp cl, 0x3a
je 0x4692ff
dec eax
lea ecx, [esp + 0x260]
cmp eax, ecx
jae 0x4692e0
jmp 0x469302
mov byte [eax], 0
lea ecx, [esp + 0x260]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469310
sub ecx, edx
je 0x469344
lea eax, [esp + 0x260]
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0x260]
push 0x400
push eax
push str._NT_SYMBOL_PATH
call ebx
test eax, eax
je 0x469393
lea eax, [esp + 0x260]
mov byte [esp + 0x65f], 0
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x400
lea eax, [esp + 0x264]
push eax
push str._NT_ALTERNATE_SYMBOL_PATH
call ebx
test eax, eax
je 0x4693dc
lea eax, [esp + 0x260]
mov byte [esp + 0x65f], 0
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x400
lea eax, [esp + 0x264]
push eax
push str.SYSTEMROOT
call ebx
test eax, eax
je 0x469468
lea eax, [esp + 0x260]
mov byte [esp + 0x65f], 0
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
lea eax, [esp + 0x260]
push str._system32
push 0x400
push eax
call fcn.0047864a
add esp, 0xc
lea eax, [esp + 0x260]
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push 0x4a9194
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
test byte [edi + 0x18], 0x20
je 0x4694f5
push 0x400
lea eax, [esp + 0x264]
push eax
push str.SYSTEMDRIVE
call ebx
test eax, eax
je 0x4694ee
push str.SRV
push 0x1000
push esi
mov byte [esp + 0x66b], 0
call fcn.0047864a
add esp, 0xc
lea eax, [esp + 0x260]
push eax
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push str.websymbols
push 0x1000
push esi
call fcn.0047864a
add esp, 0xc
push str.http:__msdl.microsoft.com_download_symbols_
push 0x1000
push esi
call fcn.0047864a
mov ecx, dword [edi + 4]
add esp, 0xc
push esi
call fcn.00468750
mov ebx, eax
jmp 0x469504
push str.SRVc:websymbolshttp:__msdl.microsoft.com_download_symbols_
jmp 0x4694d3
mov ecx, dword [edi + 4]
push esi
call fcn.00468750
mov ebx, eax
test esi, esi
je 0x46950d
push esi
call fcn.00470e61
add esp, 4
test ebx, ebx
jne 0x469542
mov eax, dword [edi]
mov ecx, edi
push ebx
push ebx
push ebx
push str.Error_while_initializing_dbghelp.dll
call dword [eax + 0x10]
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], str.kernel32.dll
mov dword [esp + 0x34], str.tlhelp32.dll
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], 0x224
nop
push dword [esp + ebx*4 + 0x30]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4695e0
push str.CreateToolhelp32Snapshot
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Module32First
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Module32Next
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4695d7
cmp dword [esp + 0x18], 0
je 0x4695d7
test eax, eax
jne 0x46962f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
inc ebx
mov dword [esp + 0x1c], esi
cmp ebx, 2
jb 0x469580
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
test esi, esi
jne 0x469635
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
call fcn.00468ae0
test eax, eax
je 0x46961a
mov dword [edi + 0x10], 1
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
jmp 0x469639
mov ecx, dword [esp + 0x10]
push dword [esp + 0x28]
push 8
call ecx
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x469653
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x469602
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], 0
push ecx
push eax
call dword [esp + 0x20]
test eax, eax
je 0x4696ae
mov edi, dword [esp + 0x14]
xor esi, esi
nop
push dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x168]
push eax
push dword [esp + 0x34]
call fcn.00468d10
lea eax, [esp + 0x38]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x469670
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
jle 0x469602
mov eax, 1
jmp 0x469613