Function at 0x10006780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x44], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
call fcn.10003830
mov edi, eax
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x100067de
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.10001a90
mov edi, dword [edi]
mov ebx, 0xf
mov eax, edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
lea edx, [eax + 1]
jmp 0x10006800
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10006800
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.10002650
call fcn.10008db0
mov edx, dword [eax + 0x6c]
mov edx, dword [edx + 4]
lea ecx, [eax + 0x6c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
cmp dword [esp + 0x40], 0x10
jb 0x10006844
mov eax, dword [esp + 0x2c]
push eax
call fcn.1003efae
add esp, 4
mov eax, dword [esp + 0xc]
xor edi, edi
add eax, 0xfffffff0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x5c], edi
je 0x100068be
mov eax, esi
mov dword [esp + 0x10], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10006893
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.10002650
lea eax, [esp + 0x28]
lea edx, [esp + 0x48]
call fcn.10004d90
test al, al
je 0x100068be
mov bl, 1
jmp 0x100068c0
xor bl, bl
test byte [esp + 0x10], 1
je 0x100068db
cmp dword [esp + 0x40], 0x10
jb 0x100068db
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1003efae
add esp, 4
test bl, bl
je 0x10006b69
mov edx, dword [0x1009087c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009087c
call eax
mov edx, dword [0x1009087c]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1009087c
call eax
mov esi, eax
mov edx, dword [esi + 8]
add esi, 0x10
mov ecx, 1
sub ecx, dword [esi - 4]
sub edx, 0x104
or ecx, edx
mov dword [esp + 0x10], esi
jge 0x1000693a
push 0x104
lea ecx, [esp + 0x14]
call fcn.10002100
mov esi, dword [esp + 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.extkey.ini
push esi
push str._s_s
lea edi, [esp + 0x18]
call fcn.10002190
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
cmp dword [esp + 0xb0], 0
je 0x10006a25
cmp dword [esp + 0xb4], 0x10
mov ecx, dword [esp + 0xa0]
jae 0x1000698d
lea ecx, [esp + 0xa0]
lea eax, [esp + 0xc]
push eax
call fcn.10003790
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.100200d0
mov edi, dword [eax]
mov ecx, dword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x18]
push eax
call fcn.10001890
mov ecx, dword [eax]
push ebx
push edi
push str.name
push ecx
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100069e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006a25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x78], 0
je 0x10006aa1
cmp dword [esp + 0x7c], 0x10
mov ecx, dword [esp + 0x68]
jae 0x10006a3b
lea ecx, [esp + 0x68]
lea edx, [esp + 0x18]
push edx
call fcn.100038c0
mov edi, dword [eax]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
call fcn.10001890
mov ecx, dword [eax]
push ebx
push edi
push 0x100778b4
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006aa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x94], 0
je 0x10006b29
cmp dword [esp + 0x98], 0x10
mov ecx, dword [esp + 0x84]
jae 0x10006ac3
lea ecx, [esp + 0x84]
lea edx, [esp + 0x18]
push edx
call fcn.100038c0
mov edi, dword [eax]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
call fcn.10001890
mov ecx, dword [eax]
push ebx
push edi
push 0x100779ec
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006b29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006b49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006b65
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.100271a0
add esp, 8
cmp eax, 1
je 0x10006b88
mov dword [esp + 0x20], 1
lea esi, [esp + 0x48]
call fcn.100027f0
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10048e2f
mov esp, ebp
pop ebp
ret