Function at 0x404d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x528
mov eax, dword [str.32bitweb.ini]
mov ecx, dword [0x4253a8]
mov dword [esp + 4], eax
mov al, byte [0x4253b0]
push ebx
mov edx, dword [0x4253ac]
push esi
push edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1c], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
push 0xf5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
mov dword [esp + 0x1c], edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x124]
push edx
call fcn.00404870
mov edi, 0x4245a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x12c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004146d2
add esp, 0xc
test eax, eax
jne 0x404fb5
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push eax
push 0x42451c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e2b
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x528
ret
lea eax, [esp + 0x124]
push 0x4253a0
push eax
call fcn.00407d7f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404fb5
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x103
push ecx
call fcn.00407cec
add esp, 0xc
test eax, eax
je 0x404f9f
lea edx, [esp + 0x20]
push edx
call fcn.00404800
mov al, byte [esp + 0x24]
add esp, 4
cmp al, 0x5b
jne 0x404eca
lea eax, [esp + 0x20]
push 0x5d
push eax
call fcn.00406c00
add esp, 8
test eax, eax
je 0x404e9d
mov byte [eax], 0
lea edi, [esp + 0x21]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404f84
cmp al, 0x3b
je 0x404f84
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x404f84
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x228]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x3d
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x330]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x22c]
push ecx
call fcn.00407c30
add esp, 8
test eax, eax
je 0x404f5f
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x32c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x32c]
push 0x42451c
lea edx, [esp + 0x22c]
push ecx
lea eax, [esp + 0x438]
push edx
push eax
call fcn.00404ad0
add esp, 0x10
push ebx
lea ecx, [esp + 0x24]
push 0x103
push ecx
call fcn.00407cec
add esp, 0xc
test eax, eax
jne 0x404e72
push ebx
call fcn.00407b9b
lea edx, [esp + 0x128]
push edx
call fcn.00406b3e
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x528
ret