Function at 0x4123b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x15
mov ebx, ecx
mov dword [ebp - 0x124], eax
call fcn.0044ecb6
mov edi, eax
add esp, 4
add ebx, 4
mov dword [ebp - 0x11c], edi
mov ecx, ebx
mov dword [ebp - 0x118], ebx
mov dword [edi], 5
mov dword [edi + 4], 4
mov dword [edi + 8], 1
mov eax, dword [str.path]
mov dword [edi + 0x10], eax
mov al, byte [0x479754]
mov byte [edi + 0x14], al
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00406c80
mov esi, dword [eax]
cmp esi, dword [ebx]
je 0x41243e
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x128], esi
test esi, esi
je 0x412446
lock inc dword [esi + 8]
jmp 0x412446
xor esi, esi
mov dword [ebp - 0x128], esi
or ebx, 0xffffffff
lea ecx, [edi + 8]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x41245d
push edi
call fcn.0044ec66
add esp, 4
push 0x15
call fcn.0044ecb6
add esp, 4
mov dword [ebp - 0x114], eax
mov dword [eax], 5
lea ecx, [eax + 8]
mov dword [eax + 4], 4
mov dword [ecx], 1
mov dword [ebp - 0x11c], ecx
mov ecx, dword [str.name]
mov dword [eax + 0x10], ecx
mov cl, byte [0x47975c]
mov byte [eax + 0x14], cl
lea eax, [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00406c80
mov edi, dword [eax]
mov eax, dword [ebp - 0x118]
cmp edi, dword [eax]
je 0x4124db
mov edi, dword [edi + 0x14]
mov dword [ebp - 0x118], edi
test edi, edi
je 0x4124d1
lock inc dword [edi + 8]
mov ecx, edi
mov dword [ebp - 0x110], edi
jmp 0x4124eb
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x11c]
mov eax, ebx
lock xadd dword [edx], eax
jne 0x41250d
push dword [ebp - 0x114]
call fcn.0044ec66
mov ecx, dword [ebp - 0x110]
add esp, 4
test ecx, ecx
je 0x4126fc
cmp dword [edi + 4], 0
je 0x4126fc
lea eax, [ebp - 0x10c]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x11c], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
add esp, 0x10
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x114]
push eax
push 0x479774
lea eax, [ebp - 0x128]
push eax
push 0x479774
call fcn.00402750
add esp, 4
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.00403900
add esp, 4
lea ecx, [ebp - 0x12c]
mov edx, eax
call fcn.00402750
add esp, 4
lea ecx, [ebp - 0x120]
mov edx, eax
call fcn.00403900
mov eax, dword [ebp - 0x12c]
add esp, 4
test eax, eax
je 0x4125ee
lea ecx, [eax + 8]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x4125e4
push dword [ebp - 0x12c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x41261b
lea ecx, [eax + 8]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x412611
push dword [ebp - 0x110]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x412648
lea ecx, [eax + 8]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x41263e
push dword [ebp - 0x114]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x412666
lea edx, [eax + 8]
mov ecx, ebx
lock xadd dword [edx], ecx
jne 0x412666
push eax
call fcn.0044ec66
add esp, 4
push 0xffffffffffffffff
push 0x477a20
push 0x479774
lea ecx, [ebp - 0x120]
call fcn.004016e0
push 0xffffffffffffffff
push 0x477a20
push 0x477638
lea ecx, [ebp - 0x120]
call fcn.004016e0
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4126ca
lea edx, [eax + 8]
mov ecx, ebx
lock xadd dword [edx], ecx
jne 0x4126ca
push eax
call fcn.0044ec66
add esp, 4
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x4126e7
lea edx, [ecx + 8]
lock xadd dword [edx], ebx
dec ebx
jne 0x4126e7
push ecx
call fcn.0044ec66
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414803
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x124]
mov dword [edx], 0
test ecx, ecx
je 0x412726
add ecx, 8
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x412726
push edi
call fcn.0044ec66
mov edx, dword [ebp - 0x124]
add esp, 4
test esi, esi
je 0x412756
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x412756
push esi
call fcn.0044ec66
mov eax, dword [ebp - 0x124]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414803
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414803
mov esp, ebp
pop ebp
ret 4