Function at 0x49d470
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x50ccdf
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x8815d0]
xor eax, ebp
mov dword [ebp + 0x250], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x1a
lea eax, [ebp + 0x48]
mov dword [ebp - 0x10], 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x49d5d9
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004ab500
add esp, 8
push 0xb
push str._alsoft.ini
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0
call fcn.00406de0
cmp dword [0x882038], 3
jl 0x49d518
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
push str.Loading_config__s..._n
push dword [0x885eec]
push 3
call fcn.0047e100
add esp, 0x10
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
push 1
cmovae eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x19c]
push 1
push eax
call fcn.004d5600
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.al::ifstream.virtual_0], vtable.al::ifstream.0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1a0], eax
cmp dword [ebp - 0x140], 0
mov byte [ebp - 4], 1
je 0x49d576
lea eax, [ebp - 0x19c]
push eax
call fcn.0049c390
add esp, 4
lea ecx, [ebp - 0x12c]
call fcn.004d5730
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042f6aa
mov ecx, dword [ebp + 0x2c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x49d5d9
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49d5cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d892
push ecx
push edx
call fcn.00433080
add esp, 8
call fcn.004b6cd0
push eax
lea ecx, [ebp + 0x30]
call fcn.00404950
cmp dword [ebp + 0x40], 0
mov dword [ebp - 4], 3
je 0x49d6bb
push 0xb
push str._alsoft.ini
lea ecx, [ebp + 0x30]
call fcn.00406de0
cmp dword [0x882038], 3
jl 0x49d631
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
push str.Loading_config__s..._n
push dword [0x885eec]
push 3
call fcn.0047e100
add esp, 0x10
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
push 1
cmovae eax, dword [ebp + 0x30]
lea ecx, [ebp - 0x19c]
push 1
push eax
call fcn.004d5600
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.al::ifstream.virtual_0], vtable.al::ifstream.0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1a0], eax
cmp dword [ebp - 0x140], 0
mov byte [ebp - 4], 4
je 0x49d68f
lea eax, [ebp - 0x19c]
push eax
call fcn.0049c390
add esp, 4
lea ecx, [ebp - 0x12c]
call fcn.004d5730
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042f6aa
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push str.ALSOFT_CONF
push eax
call fcn.004ab380
add esp, 8
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 6
je 0x49d83a
cmp dword [0x882038], 3
jl 0x49d755
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
call fcn.004ab500
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x49d707
mov eax, dword [eax]
push eax
push str.Loading_config__s..._n
push dword [0x885eec]
push 3
call fcn.0047e100
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x49d755
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49d74b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d897
push ecx
push edx
call fcn.00433080
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0xe4], 0x5b8564
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x74], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0x40
push 1
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 8
mov dword [ebp - 0x10], 1
call fcn.0049b6c0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.al::ifstream.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe8], eax
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.al::ifstream.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe8], eax
cmp dword [ebp - 0x88], 0
mov byte [ebp - 4], 9
je 0x49d81b
lea eax, [ebp - 0xe4]
push eax
call fcn.0049c390
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.004d5730
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0042f6aa
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00474660
mov ecx, dword [ebp + 0x44]
cmp ecx, 0x10
jb 0x49d872
mov edx, dword [ebp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49d868
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d89c
push ecx
push edx
call fcn.00433080
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00432bfc
lea esp, [ebp + 0x254]
pop ebp
ret
call fcn.00438697
call fcn.00438697
call fcn.00438697
int3