Function at 0x10006230
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c61b6
mov eax, dword fs:[0]
push eax
sub esp, 0xa44
mov eax, dword [0x1010d03c]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0xa50]
mov esi, dword [ebp + 0xc]
call fcn.10010e70
lea ecx, [ebp - 0xa50]
mov dword [ebp - 4], 0
call fcn.10011770
test al, al
je 0x10006548
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10096b80
add esp, 0xc
mov dword [ebp - 0xa4c], 0
lea eax, [ebp - 0xa4c]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x100062c2
xor bl, bl
jmp 0x1000631f
lea eax, [ebp - 0x218]
mov bl, 1
push eax
push dword [ebp - 0xa4c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x100062df
xor bl, bl
jmp 0x1000630e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100062f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10004af0
mov eax, dword [ebp - 0xa4c]
test eax, eax
je 0x1000631f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0xa50]
call fcn.10011a70
test bl, bl
je 0x10006548
push 0xd
push 0x100e9950
mov ecx, edi
call fcn.10005970
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.10096b80
add esp, 0xc
lea ecx, [ebp - 0xa30]
push edi
call fcn.10006950
push 0xb
push 0x100e996c
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 1
call fcn.10005970
cmp dword [ebp - 0xa1c], 8
lea eax, [ebp - 0xa30]
cmovae eax, dword [ebp - 0xa30]
push eax
push 0x3ff
lea eax, [ebp - 0xa18]
push eax
push 0x100e9984
push 0x100e95ec
push 0x100e998c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x100e9984
lea eax, [ebp - 0xa18]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100063e6
test dx, dx
je 0x100063e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100063e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100063c0
xor eax, eax
jmp 0x100063eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100063f6
xor bl, bl
jmp 0x100064ed
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006400
sub ecx, edx
lea eax, [ebp - 0xa18]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10004af0
push 0xd
push 0x100e99a4
mov ecx, edi
call fcn.10005970
cmp dword [esi + 0x14], 8
mov ecx, eax
mov eax, esi
jb 0x10006438
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.10005970
push edi
lea eax, [ebp - 0xa48]
push str.Appdata_Path:
push eax
call fcn.10004d00
mov edx, dword [ebp - 0xa34]
add esp, 0xc
cmp edx, 8
jb 0x10006496
mov ecx, dword [ebp - 0xa48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000648c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006575
push edx
push ecx
call fcn.1009441c
add esp, 8
push esi
lea eax, [ebp - 0xa48]
push str.Appdata_Version:
push eax
call fcn.10004d00
mov edx, dword [ebp - 0xa34]
add esp, 0xc
cmp edx, 8
jb 0x100064eb
mov ecx, dword [ebp - 0xa48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100064e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000657a
push edx
push ecx
call fcn.1009441c
add esp, 8
mov bl, 1
mov edx, dword [ebp - 0xa1c]
cmp edx, 8
jb 0x10006529
mov ecx, dword [ebp - 0xa30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000651f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000657f
push edx
push ecx
call fcn.1009441c
add esp, 8
xor eax, eax
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 7
mov word [ebp - 0xa30], ax
jmp 0x1000654a
xor bl, bl
lea ecx, [ebp - 0xa50]
call fcn.10010ef0
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.10093f25
mov esp, ebp
pop ebp
ret 8
call fcn.1009ba34
call fcn.1009ba34
call fcn.1009ba34
int3