Function at 0x40ec30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x26c
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov ebx, ecx
mov dword [esp + 0x26c], eax
mov eax, dword [esp + 0x274]
test eax, eax
push esi
lea esi, [ebx + 4]
push edi
mov dword [ebx], 0
mov byte [esi], 0
je 0x40ec7f
cmp byte [eax], 0
je 0x40ec7f
mov edx, esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ec70
jmp 0x40ed08
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40ecb5
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ec92
mov eax, dword [str.KASetup.log]
mov dword [edi], eax
mov ecx, dword [0x41da18]
mov dword [edi + 4], ecx
mov edx, dword [0x41da1c]
mov dword [edi + 8], edx
jmp 0x40ed08
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ed08
push 0x2e
push esi
call fcn.004105a0
add esp, 8
test eax, eax
je 0x40ece9
mov ecx, dword [str..log]
mov dword [eax], ecx
mov dl, byte [0x41da10]
mov byte [eax + 4], dl
jmp 0x40ed08
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ecf0
mov eax, dword [str..log]
mov dword [edi], eax
mov cl, byte [0x41da10]
mov byte [edi + 4], cl
cmp byte [esi], 0
je 0x40ee79
push 0x5c
push esi
call fcn.004105a0
add esp, 8
test eax, eax
lea edx, [esp + 0x170]
je 0x40ed3c
inc eax
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ed30
jmp 0x40ed4a
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ed40
lea edx, [esp + 0x170]
push 0x2e
push edx
call fcn.004104e0
add esp, 8
test eax, eax
je 0x40ed63
mov byte [eax], 0
mov al, byte [esp + 0x170]
test al, al
lea esi, [esp + 0x170]
je 0x40ed8b
movsx eax, byte [esi]
push eax
call fcn.004107d4
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40ed75
call fcn.0040eaf0
test eax, eax
je 0x40ee18
mov edx, dword [0x41d9fc]
mov ecx, dword [str.GlobalKaseyaTL_]
mov eax, dword [0x41da00]
mov dword [esp + 0x30], edx
mov dl, byte [0x41da08]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x41da04]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x170]
mov byte [esp + 0x3c], dl
mov dword [esp + 0x38], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40edd2
lea edi, [esp + 0x2c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ede0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040eb60
add esp, 8
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x14]
push eax
jmp 0x40ee71
mov ax, word [0x41d9f4]
mov edx, dword [0x41d9f0]
mov ecx, dword [str.KaseyaTL_]
mov word [esp + 0x34], ax
lea eax, [esp + 0x170]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ee40
lea edi, [esp + 0x2c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ee50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx], eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x26c
ret 4