Function at 0x404b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43733c
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x5c8], ebx
mov esi, ecx
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x404cd8
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x105
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0x105
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x404cd8
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x44464c
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, esi
call fcn.00403170
xor bl, bl
jmp 0x404fda
lea ecx, [ebp - 0x134]
call fcn.00403e50
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x37c]
cmove eax, dword [ebp - 0x12c]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.00405860
mov byte [ebp - 4], 1
cmp byte [0x454d1c], 0
jne 0x404d5d
push 0x114
lea eax, [ebp - 0x248]
mov byte [0x454d1c], 1
push 0
push eax
call fcn.004238c0
add esp, 0xc
lea ecx, [ebp - 0x248]
xor edx, edx
call fcn.00404930
cmp dword [ebp - 0x244], 6
jb 0x404d51
mov byte [0x454d18], 1
jmp 0x404d6a
mov byte [0x454d18], 0
jmp 0x404f42
cmp byte [0x454d18], 0
je 0x404f42
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0x5c
cmove eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.00423614
add esp, 8
test eax, eax
jne 0x404da9
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
cmove eax, dword [ebp - 0x374]
add eax, 4
jmp 0x404dac
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00403b80
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24c]
cmp byte [ebp - 0x13c], 0
mov ecx, str.Application_Data
mov esi, dword [ebp - 0x250]
cmove eax, esi
add eax, 4
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404e06
test dx, dx
je 0x404e02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404e06
add eax, 4
add ecx, 4
test dx, dx
jne 0x404de0
xor eax, eax
jmp 0x404e0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404f1c
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.00404130
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x20
cmove eax, dword [ebp - 0x250]
add eax, 4
push str.AppDataRoaming
push eax
call fcn.00422b20
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.004057c0
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x37c]
call fcn.004061e0
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x5c4]
cmove eax, dword [ebp - 0x250]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.00405860
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00405ba0
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404ed8
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x404ed8
push eax
call fcn.00427afc
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.00403cc0
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404f16
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x404f16
push eax
call fcn.00427afc
add esp, 4
mov esi, dword [ebp - 0x250]
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404f42
lea eax, [ebp - 0x24c]
cmp esi, eax
je 0x404f42
push esi
call fcn.00427afc
add esp, 4
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
mov edi, 0x444414
cmove eax, dword [ebp - 0x374]
add eax, 4
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f66
mov esi, dword [ebp - 0x5c8]
sub ecx, edx
sar ecx, 1
mov dword [ebx + 4], ecx
lea ebx, [ecx + 1]
push ebx
lea ecx, [esi + 8]
call fcn.00404130
cmp byte [esi + 0x11c], 0
je 0x404f98
add esi, 0xc
jmp 0x404f9b
mov esi, dword [esi + 8]
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 4]
push edi
push eax
call fcn.00422b20
add esp, 0xc
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x260], 0
mov bl, 1
jne 0x404fda
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x404fda
push eax
call fcn.00427afc
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x405003
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x405003
push ecx
call fcn.00427afc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret