Function at 0x40a050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe931
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 8]
push 1
mov ecx, ebx
mov dword [ebp - 0x20], edi
mov dword [edi], vtable.EasyLog.0
call fcn.00409a50
xor eax, eax
lea esi, [edi + 0xb0]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov byte [esi], al
lea eax, [edi + 0xd0]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x103
lea ecx, [ebp - 0x163]
push 0
push ecx
mov dword [edi + 0xcc], 0
mov byte [ebp - 0x164], 0
call fcn.004e00a0
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x164]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a0f2
sub eax, ecx
push eax
lea eax, [ebp - 0x164]
push eax
mov ecx, esi
call fcn.00404e20
push 0x3f
push 0x503a80
lea ecx, [ebp - 0x24]
call fcn.004044c0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.004cc2e1
add esp, 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 4
test eax, eax
je 0x40a177
mov edi, eax
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.004cbbde
mov eax, dword [edi + 4]
test eax, eax
je 0x40a154
cmp eax, 0xffffffff
jae 0x40a154
dec eax
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
neg edi
sbb edi, edi
lea ecx, [ebp - 0x18]
not edi
call fcn.004cbc06
and edi, dword [ebp - 0x14]
je 0x40a174
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edi, dword [ebp - 0x20]
push 1
push 0x504374
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00404e20
push str.LogEasy.log
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x60]
push edx
mov byte [ebp - 4], 5
call fcn.00408880
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00404c10
cmp dword [ebp - 0x4c], 0x10
jb 0x40a1d3
mov eax, dword [ebp - 0x60]
push eax
call fcn.004df8f9
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 4
jb 0x40a1fb
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004df8f9
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x40a203
mov esi, dword [esi]
push 0x40
push 0xa
push esi
lea ecx, [ebx + 4]
call fcn.00405af0
test eax, eax
jne 0x40a22d
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx + 0xc]
add ecx, ebx
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40a242
or eax, 4
jmp 0x40a242
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 0x38]
add ecx, ebx
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.00401c90
mov esi, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.004cbbde
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x40a266
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x18]
call fcn.004cbc06
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 7
call fcn.004cc2e1
mov ebx, dword [ebp - 0x28]
add esp, 8
test ebx, ebx
je 0x40a2c2
push 0
lea ecx, [ebp - 0x10]
call fcn.004cbbde
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a2a3
cmp eax, 0xffffffff
jae 0x40a2a3
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x10]
not esi
call fcn.004cbc06
and esi, ebx
je 0x40a2c2
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test ebx, ebx
je 0x40a306
push 0
lea ecx, [ebp - 0x10]
call fcn.004cbbde
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a2e7
cmp eax, 0xffffffff
jae 0x40a2e7
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x10]
not esi
call fcn.004cbc06
and esi, ebx
je 0x40a306
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push 0
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x5c
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
push str._n_n_____________________________________LOG_SYSTEM_START_____________________________________
mov byte [ecx], 0
call fcn.00404e20
mov ecx, edi
call fcn.00409cc0
push 0
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x25
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
push str.____________________________________
mov byte [ecx], 0
call fcn.00404e20
mov ecx, edi
call fcn.00409cc0
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40a3a7
push 0
lea ecx, [ebp - 0x10]
call fcn.004cbbde
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a388
cmp eax, 0xffffffff
jae 0x40a388
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x10]
not esi
call fcn.004cbc06
and esi, ebx
je 0x40a3a7
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret