Function at 0x10113580
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x10166922
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x102a0600]
xor eax, ebp
mov dword [ebp + 0x250], eax
push esi
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 0x101136e1
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.10121230
add esp, 8
push 0xb
push str._alsoft.ini
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0
call fcn.10043690
cmp dword [0x102a10c0], 3
jl 0x10113629
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
cmova eax, dword [ebp + 0x18]
push eax
push str.Loading_config__s..._n
push dword [0x102a7f00]
push 3
call fcn.100f3fb0
add esp, 0x10
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
push 1
cmova eax, dword [ebp + 0x18]
lea ecx, [ebp - 0xe4]
push 1
push eax
call fcn.1014b340
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], 1
je 0x10113687
lea eax, [ebp - 0xe4]
push eax
call fcn.10112460
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.1014b440
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.1008149d
mov ecx, dword [ebp + 0x2c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x101136e1
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101136d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10113983
push ecx
push edx
call fcn.100849ca
add esp, 8
call fcn.1012cab0
push eax
lea ecx, [ebp + 0x30]
call fcn.1000b1a1
cmp dword [ebp + 0x40], 0
mov dword [ebp - 4], 3
je 0x101137ba
push 0xb
push str._alsoft.ini
lea ecx, [ebp + 0x30]
call fcn.10043690
cmp dword [0x102a10c0], 3
jl 0x10113739
cmp dword [ebp + 0x44], 0xf
lea eax, [ebp + 0x30]
cmova eax, dword [ebp + 0x30]
push eax
push str.Loading_config__s..._n
push dword [0x102a7f00]
push 3
call fcn.100f3fb0
add esp, 0x10
cmp dword [ebp + 0x44], 0xf
lea eax, [ebp + 0x30]
push 1
cmova eax, dword [ebp + 0x30]
lea ecx, [ebp - 0xe4]
push 1
push eax
call fcn.1014b340
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], 4
je 0x10113797
lea eax, [ebp - 0xe4]
push eax
call fcn.10112460
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.1014b440
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.1008149d
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push str.ALSOFT_CONF
push eax
call fcn.10121080
add esp, 8
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 6
je 0x1011392a
cmp dword [0x102a10c0], 3
jl 0x10113854
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
call fcn.10121230
add esp, 8
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 7
jbe 0x10113806
mov eax, dword [eax]
push eax
push str.Loading_config__s..._n
push dword [0x102a7f00]
push 3
call fcn.100f3fb0
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x10113854
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1011384a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10113988
push ecx
push edx
call fcn.100849ca
add esp, 8
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x19c], 0x10219b54
cmova esi, dword [ebp - 0x28]
call fcn.10054ed0
push 0
push 0x40
push 1
push esi
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 8
mov dword [ebp - 0x10], 1
call fcn.10111760
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 4], 6
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
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], 9
je 0x10113902
lea eax, [ebp - 0x19c]
push eax
call fcn.10112460
add esp, 4
lea ecx, [ebp - 0x12c]
call fcn.1014b440
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1008149d
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.100ea970
mov ecx, dword [ebp + 0x44]
cmp ecx, 0xf
jbe 0x10113962
mov edx, dword [ebp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10113958
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011398d
push ecx
push edx
call fcn.100849ca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.10084465
lea esp, [ebp + 0x254]
pop ebp
ret
call fcn.1009532c
call fcn.1009532c
call fcn.1009532c
int3