Function at 0x403bb0
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 0x403c2a
mov eax, dword [esp + 0x514]
push 0x4239f8
push eax
lea ecx, [esp + 0x11c]
push str.GetThePath___thepath:__s_
push ecx
call fcn.00409bd8
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 0x403f52
mov al, byte [ebp]
xor edx, edx
cmp al, 0x5c
je 0x403d10
lea esi, [esp + 0x114]
mov eax, ebp
sub esi, ebp
mov cl, byte [eax]
cmp cl, 0x41
jl 0x403d01
cmp cl, 0x5a
jg 0x403d01
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 0x403cf0
mov al, byte [edx + ebp]
add edx, ebp
cmp al, bl
je 0x403d2b
lea ecx, [esp + 0x308]
mov byte [ecx], al
mov al, byte [edx + 1]
inc ecx
inc edx
cmp al, bl
jne 0x403d20
mov esi, str.system32
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403d5b
cmp cl, bl
je 0x403d57
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403d5b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403d37
xor eax, eax
jmp 0x403d60
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403d98
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.00409bd8
add esp, 0x10
jmp 0x403f29
mov esi, str.windows
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403dc8
cmp cl, bl
je 0x403dc4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403dc8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403da4
xor eax, eax
jmp 0x403dcd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403de3
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x403d74
mov esi, str.program
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403e13
cmp cl, bl
je 0x403e0f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403e13
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403def
xor eax, eax
jmp 0x403e18
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403e74
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x10]
cmp cl, 0x3a
je 0x403e48
xor eax, eax
mov byte [esp + eax + 0x40c], cl
mov cl, byte [esp + eax + 0x11]
inc eax
cmp cl, 0x3a
jne 0x403e37
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.00409bd8
add esp, 0x14
jmp 0x403f29
mov esi, 0x421ae8
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403ea4
cmp cl, bl
je 0x403ea0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403ea4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403e80
xor eax, eax
jmp 0x403ea9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403f16
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.0040a000
add esp, 8
cmp eax, ebx
je 0x403ee9
mov byte [eax], bl
lea edx, [esp + 0x114]
push 0x5c
push edx
call fcn.0040a000
add esp, 8
cmp eax, ebx
je 0x403f01
mov byte [eax], bl
lea eax, [esp + 0x308]
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x403d81
push ebp
push 0x4210e0
push 0x4237dc
call fcn.00409bd8
add esp, 0xc
push ebx
push 0x4237dc
call fcn.0040a2d4
add esp, 8
cmp eax, 0xffffffff
jne 0x403f7e
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 0x42150c
push eax
push str._s_s
push 0x4237dc
call fcn.00409bd8
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret