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

Disassembly:
mov eax, 0x429283
call fcn.0041bd3c
mov eax, 0x8260
call fcn.0041e5d0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push edi
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], ebx
je 0x40b2e1
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.0040aed6
jmp 0x40b322
lea eax, [ebp - 0x26c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b322
cmp word [ebp - 0x26c], 0
jne 0x40b305
mov eax, ebx
jmp 0x40b312
lea eax, [ebp - 0x26c]
push eax
call fcn.0041e23d
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040af85
mov esi, 0x42dd44
push esi
call fcn.0041e23d
mov edi, dword [ebp + 0xc]
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.0040b0db
cmp eax, 0xffffffff
je 0x40b3b2
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x40b34c
mov ecx, dword [edi]
jmp 0x40b34e
mov ecx, edi
cmp word [ecx], 0x2f
je 0x40b3a7
cmp eax, 8
jb 0x40b35d
mov ecx, dword [edi]
jmp 0x40b35f
mov ecx, edi
cmp word [ecx], 0x5c
je 0x40b3a7
cmp eax, 8
jb 0x40b36e
mov ecx, dword [edi]
jmp 0x40b370
mov ecx, edi
cmp word [ecx], bx
je 0x40b387
cmp eax, 8
jb 0x40b37e
mov eax, dword [edi]
jmp 0x40b380
mov eax, edi
cmp word [eax + 2], 0x3a
je 0x40b3a7
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp + 8]
call fcn.0040b147
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
push ebx
push eax
jmp 0x40b52e
mov ecx, dword [ebp + 8]
push edi
call fcn.0040aab8
jmp 0x40b397
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b5e9
xor eax, eax
push 0x7ffe
mov word [ebp - 0x826c], ax
lea eax, [ebp - 0x826a]
push ebx
push eax
call fcn.0041b420
add esp, 0xc
lea ebx, [ebp - 0x826c]
push 0x4000
mov eax, ebx
push eax
push 0x42dd4c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40b476
push 0x3b
mov eax, ebx
push eax
jmp 0x40b440
mov ecx, esi
sub ecx, ebx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.0040ab03
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b57c
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401bb0
lea ebx, [esi + 2]
push 0x3b
push ebx
call fcn.0041e18f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40b40d
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040aadf
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b57c
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401bb0
mov esi, dword [ebp - 0x1c]
jmp 0x40b501
cmp dword [esi + 0x10], 0
je 0x40b4fe
cmp dword [edi + 0x14], 8
jb 0x40b48e
mov ecx, dword [edi]
jmp 0x40b490
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x40b49a
mov eax, dword [esi]
jmp 0x40b49c
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x4c]
push str._s_s
push eax
call fcn.0040b7f7
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040aadf
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0040ba53
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401bb0
test bl, bl
jne 0x40b548
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401bb0
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x40b47e
mov ecx, dword [ebp + 8]
push edi
call fcn.0040aab8
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040aeae
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401bb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040aa94
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040aeae
mov byte [ebp - 4], bl
push ebx
jmp 0x40b52c