Function at 0x4027f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467756
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x47d00c]
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 dword [ebp - 0x124], ecx
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
lea edi, [ebx + 1]
lea ecx, [edi + 0x10]
push ecx
call fcn.0044ecb6
mov esi, eax
lea eax, [ebp - 0x118]
push ebx
push eax
mov dword [ebp - 0x12c], esi
mov dword [esi], edi
lea eax, [esi + 0x10]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], 1
call fcn.0044cb90
mov dword [ebp - 4], 0
mov esi, dword [esi + 4]
add esi, 3
lea eax, [esi + 0x10]
push eax
call fcn.0044ecb6
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x11c]
add esp, 0x14
mov dword [eax], esi
mov eax, dword [ebp - 0x11c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x11c]
mov dword [eax + 8], 1
lea eax, [ebp - 0x12c]
push eax
call fcn.004015b0
push 2
push 0x477638
mov ecx, eax
call fcn.00401a60
mov esi, dword [eax]
mov dword [ebp - 0x128], esi
test esi, esi
je 0x4028d6
lea eax, [esi + 8]
lock inc dword [eax]
mov eax, dword [ebp - 0x11c]
or edi, 0xffffffff
test eax, eax
je 0x4028fc
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4028fc
push dword [ebp - 0x11c]
call fcn.0044ec66
add esp, 4
test esi, esi
je 0x402905
mov esi, dword [esi + 4]
jmp 0x402907
xor esi, esi
add esi, 0xf
lea eax, [esi + 0x10]
push eax
call fcn.0044ecb6
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x11c]
add esp, 4
mov dword [eax], esi
mov eax, dword [ebp - 0x11c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x11c]
mov dword [eax + 8], 1
lea eax, [ebp - 0x128]
push eax
call fcn.004015b0
push 0xe
push str.Update_Log.htm
mov ecx, eax
call fcn.00401a60
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
test eax, eax
je 0x40296a
add eax, 8
lock inc dword [eax]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x402997
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x40298d
push dword [ebp - 0x11c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4029b9
lea edx, [eax + 8]
mov ecx, edi
lock xadd dword [edx], ecx
jne 0x4029b9
push eax
call fcn.0044ec66
add esp, 4
cmp dword [ebp - 0x120], 0
jne 0x4029ca
lea eax, [ebp - 0x120]
jmp 0x4029fe
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x120]
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4029fb
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x120]
add eax, 0x10
mov ebx, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov ebx, dword [ebx]
mov esi, ebx
test ebx, ebx
je 0x402a30
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x402a30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
mov ebx, dword [ebp - 0x124]
mov esi, dword [ebx]
jmp 0x402a36
mov ebx, dword [ebp - 0x124]
test esi, esi
jne 0x402a55
push 8
call fcn.00414d1e
mov esi, eax
add esp, 4
mov dword [ebp - 0x124], esi
mov dword [esi + 4], 0
mov dword [ebx], esi
mov ebx, dword [ebp - 0x128]
lea ecx, [esi + 4]
push ebx
call fcn.004014d0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x402aa9
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x402a9f
push dword [ebp - 0x120]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x402ac6
lea ecx, [eax + 8]
lock xadd dword [ecx], edi
dec edi
jne 0x402ac6
push eax
call fcn.0044ec66
add esp, 4
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.00414803
mov esp, ebp
pop ebp
ret