Function at 0x402720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42259c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x42f040]
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 ebx, ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040f700
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x40295a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x428d10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
test eax, 0xffff0000
jne 0x4027c8
movzx eax, ax
push eax
call fcn.004018d0
jmp 0x4027d4
push 1
push 0x428d10
call fcn.00401b50
mov dword [ebp - 4], 1
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x402964
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x40281a
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.004018d0
jmp 0x402845
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402823
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401b50
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00402430
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [eax]
mov edi, dword [ebx + 0x7c]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4028c0
cmp dword [edi + 0xc], 0
jl 0x4028b4
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4028b4
call fcn.00401a70
mov dword [ebp - 0x228], eax
lea edx, [edi + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028ac
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebx + 0x7c], eax
jmp 0x4028c0
push dword [edx - 0xc]
lea ecx, [ebx + 0x7c]
push edx
call fcn.00401b50
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402902
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x402924
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
sub ecx, 0x10
call fcn.00401a70
mov ecx, dword [ebp - 0x22c]
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
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.0040d81c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004012b0
push 0x80004005
call fcn.004012b0
int3