Function at 0x40f3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490907
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4c21d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4c21d0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x34], edi
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
mov dword [esp + 0x280], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.0040fb80
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x40f4b2
push 0x4a39e4
mov ecx, ebx
call fcn.00401bb0
cmp esi, edi
je 0x40f497
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00410f20
push esi
call fcn.0046c44a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f4ab
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046c44a
add esp, 4
mov eax, ebx
jmp 0x40f894
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x280], 2
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f51c
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x40f4f9
mov ecx, dword [esi]
jmp 0x40f4fb
mov ecx, esi
lea edx, [esp + 0x24]
push edx
call fcn.0040fd60
add esp, 4
add esi, 0x1c
dec edi
jne 0x40f4f0
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x28]
jne 0x40f56f
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x4a39e4
call fcn.00401bb0
test ebx, ebx
je 0x40f542
mov edi, dword [esp + 0x28]
mov eax, ebx
call fcn.00410f20
push ebx
call fcn.0046c44a
add esp, 4
test esi, esi
je 0x40f55a
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00410f20
push esi
call fcn.0046c44a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f890
mov eax, dword [esp + 0x48]
push eax
jmp 0x40f888
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x280], 3
mov ecx, dword [esp + 0x28]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f5e2
mov esi, ebx
mov edi, eax
mov ebx, 8
lea esp, [esp]
cmp dword [esi + 0x14], ebx
jb 0x40f5b9
mov ecx, dword [esi]
jmp 0x40f5bb
mov ecx, esi
lea edx, [esp + 0x38]
push edx
call fcn.0040f8c0
add esp, 4
add esi, 0x1c
dec edi
jne 0x40f5b0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x40f699
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0x4a39e4
call fcn.00401bb0
test edi, edi
je 0x40f5fd
push edi
call fcn.0046c44a
add esp, 4
test ebx, ebx
je 0x40f63b
mov edi, dword [esp + 0x28]
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x40f618
mov eax, dword [esi]
push eax
call fcn.0046c44a
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x40f607
push ebx
call fcn.0046c44a
add esp, 4
cmp dword [esp + 0x14], 0
je 0x40f684
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x40f661
mov edx, dword [esi]
push edx
call fcn.0046c44a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x40f650
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046c44a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f890
mov edx, dword [esp + 0x48]
push edx
jmp 0x40f888
mov ecx, ebx
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x34]
push eax
shr esi, 0x1f
add esi, edx
push esi
push ebx
push edi
call fcn.00410fa0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.0046ff60
add esp, 0x1c
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push edi
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040e090
xor eax, eax
test esi, esi
je 0x40f73d
mov bx, word [esp + 0x64]
mov ecx, edi
cmp dword [ecx + 0x14], 8
jb 0x40f713
mov edx, dword [ecx]
jmp 0x40f715
mov edx, ecx
cmp word [edx], bx
jne 0x40f724
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x40f709
jmp 0x40f739
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040e090
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x48]
jae 0x40f74c
lea esi, [esp + 0x48]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov ecx, dword [esp + 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x280], 4
test esi, esi
je 0x40f798
test esi, 0xffff0000
jne 0x40f79c
movzx esi, si
push 0
push esi
call fcn.00401600
add esp, 8
test eax, eax
je 0x40f7bb
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.004017c0
jmp 0x40f7bb
xor eax, eax
jmp 0x40f7b0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7a1
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00401ab0
test edi, edi
je 0x40f7f5
mov esi, edi
cmp dword [esi + 0x14], 8
jb 0x40f7d2
mov edx, dword [esi]
push edx
call fcn.0046c44a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x28
cmp esi, ebx
jne 0x40f7c1
push edi
call fcn.0046c44a
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40f83a
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x40f811
mov ecx, dword [esi]
push ecx
call fcn.0046c44a
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x28]
jne 0x40f800
mov eax, dword [esp + 0x24]
push eax
call fcn.0046c44a
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40f87c
cmp dword [esi + 0x14], 8
jb 0x40f853
mov ecx, dword [esi]
push ecx
call fcn.0046c44a
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x40f842
mov eax, dword [esp + 0x14]
push eax
call fcn.0046c44a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f890
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046c44a
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046c455
mov esp, ebp
pop ebp
ret