Function at 0x4027d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543f2e
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5965b0]
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, edx
mov edi, ecx
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x464], edi
mov dword [ebp - 0x458], 0
call fcn.0040847e
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x402834
push 0x80004005
call fcn.004010a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x460], esi
xor eax, eax
push 0x206
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.005170e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005170e0
add esp, 0x18
lea eax, [ebp - 0x420]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x4028ad
push str._s.exe
jmp 0x4028b2
push str._s.dll
push eax
call fcn.004052e0
add esp, 0xc
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], 0
call fcn.00407a1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x44c], 0
call fcn.0040612d
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.00407cb3
or ebx, 0xffffffff
test eax, eax
je 0x4029ba
lea ecx, [ebp - 0x43c]
call fcn.00407e59
lea ecx, [ebp - 0x43c]
mov edi, eax
call fcn.0040821c
test eax, eax
jne 0x4029b0
mov eax, dword [ebp - 0x43c]
push 0x10
lea ecx, [ebp - 0x43c]
call dword [eax + 0x38]
test eax, eax
jne 0x4029b0
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00407f93
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x448]
lea ecx, [ebp - 0x450]
call fcn.00406410
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4029b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x402934
mov edi, dword [ebp - 0x454]
lea ecx, [ebp - 0x43c]
call fcn.00407c67
cmp dword [ebp - 0x448], 0
jg 0x402a3d
add esi, 0xfffffff0
push esi
call fcn.00404920
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x458], 1
mov byte [ebp - 4], 2
call fcn.00406150
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00407bc7
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x402a1f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00514e2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005161d7
mov edi, dword [ebp - 0x448]
add esp, 4
call fcn.005161b4
cdq
idiv edi
test edx, edx
js 0x402ad2
cmp edx, dword [ebp - 0x448]
jge 0x402ad2
mov eax, dword [ebp - 0x44c]
mov eax, dword [eax + edx*4]
sub eax, 0x10
push eax
call fcn.00404920
mov edi, dword [ebp - 0x454]
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x450]
mov dword [edi], eax
mov dword [ebp - 0x458], 1
mov byte [ebp - 4], 2
call fcn.00406150
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00407bc7
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x402a1f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402a1f
call fcn.00405396
int3