Function at 0x403aa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x500
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x4239f8
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403b1a
mov eax, dword [esp + 0x514]
push 0x4239f8
push eax
lea ecx, [esp + 0x11c]
push str.GetThePath___thepath:__s_
push ecx
call fcn.00409ac8
lea edx, [esp + 0x124]
push edx
call fcn.00401040
mov edi, 0x4239f8
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4237dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
mov byte [esp + 0x308], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x309]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x40d]
mov ebp, dword [esp + 0x514]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x308]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x40c]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403e42
mov al, byte [ebp]
xor edx, edx
cmp al, 0x5c
je 0x403c00
lea esi, [esp + 0x114]
mov eax, ebp
sub esi, ebp
mov cl, byte [eax]
cmp cl, 0x41
jl 0x403bf1
cmp cl, 0x5a
jg 0x403bf1
add cl, 0x20
mov byte [eax], cl
mov cl, byte [eax]
inc edx
mov byte [esi + eax], cl
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x5c
jne 0x403be0
mov al, byte [edx + ebp]
add edx, ebp
cmp al, bl
je 0x403c1b
lea ecx, [esp + 0x308]
mov byte [ecx], al
mov al, byte [edx + 1]
inc ecx
inc edx
cmp al, bl
jne 0x403c10
mov esi, str.system32
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403c4b
cmp cl, bl
je 0x403c47
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403c4b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403c27
xor eax, eax
jmp 0x403c50
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403c88
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x308]
lea edx, [esp + 0x10]
push ecx
push edx
push str._s_s
push 0x4237dc
call fcn.00409ac8
add esp, 0x10
jmp 0x403e19
mov esi, str.windows
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403cb8
cmp cl, bl
je 0x403cb4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403cb8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403c94
xor eax, eax
jmp 0x403cbd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403cd3
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x403c64
mov esi, str.program
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403d03
cmp cl, bl
je 0x403cff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403d03
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403cdf
xor eax, eax
jmp 0x403d08
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403d64
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x10]
cmp cl, 0x3a
je 0x403d38
xor eax, eax
mov byte [esp + eax + 0x40c], cl
mov cl, byte [esp + eax + 0x11]
inc eax
cmp cl, 0x3a
jne 0x403d27
lea ecx, [esp + 0x308]
lea edx, [esp + 0x40c]
push ecx
push str.:Program_Files
push edx
push str._s_s_s
push 0x4237dc
call fcn.00409ac8
add esp, 0x14
jmp 0x403e19
mov esi, 0x421ae4
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403d94
cmp cl, bl
je 0x403d90
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403d94
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403d70
xor eax, eax
jmp 0x403d99
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403e06
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x114]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.00409ef0
add esp, 8
cmp eax, ebx
je 0x403dd9
mov byte [eax], bl
lea edx, [esp + 0x114]
push 0x5c
push edx
call fcn.00409ef0
add esp, 8
cmp eax, ebx
je 0x403df1
mov byte [eax], bl
lea eax, [esp + 0x308]
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x403c71
push ebp
push 0x4210e0
push 0x4237dc
call fcn.00409ac8
add esp, 0xc
push ebx
push 0x4237dc
call fcn.0040a12e
add esp, 8
cmp eax, 0xffffffff
jne 0x403e6e
push 0x4237dc
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
push 0x42143c
push eax
push str._s_s
push 0x4237dc
call fcn.00409ac8
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret